Skip to content

Commit eaa6fdd

Browse files
authored
Merge pull request #208 from Hilzu/patch-1
Fixes #207: Synchronously log error on exit
2 parents 9034a03 + a27efdb commit eaa6fdd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source-map-support.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,11 +429,10 @@ function printErrorAndExit (error) {
429429
var source = getErrorSource(error);
430430

431431
if (source) {
432-
console.error();
433-
console.error(source);
432+
fs.writeSync(2, "\n" + source + "\n");
434433
}
435434

436-
console.error(error.stack);
435+
fs.writeSync(2, error.stack + "\n");
437436
process.exit(1);
438437
}
439438

0 commit comments

Comments
 (0)