Skip to content

Commit

Permalink
Merge pull request #208 from Hilzu/patch-1
Browse files Browse the repository at this point in the history
Fixes #207: Synchronously log error on exit
  • Loading branch information
LinusU committed Mar 15, 2018
2 parents 9034a03 + a27efdb commit eaa6fdd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source-map-support.js
Expand Up @@ -429,11 +429,10 @@ function printErrorAndExit (error) {
var source = getErrorSource(error);

if (source) {
console.error();
console.error(source);
fs.writeSync(2, "\n" + source + "\n");
}

console.error(error.stack);
fs.writeSync(2, error.stack + "\n");
process.exit(1);
}

Expand Down

0 comments on commit eaa6fdd

Please sign in to comment.