Skip to content

Commit fe0cd50

Browse files
committed
Util: Print a stacktrace when aborting
Closes jquerygh-50
1 parent 67055b0 commit fe0cd50

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/util.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ Release.define({
3030
},
3131

3232
abort: function( msg ) {
33+
var error = new Error();
34+
Error.captureStackTrace( error );
3335
console.log( msg.red );
3436
console.log( "Aborting.".red );
37+
console.log( error.stack );
3538
process.exit( 1 );
3639
},
3740

0 commit comments

Comments
 (0)