We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e5eccf + 0752572 commit e9c6c84Copy full SHA for e9c6c84
source-map-support.js
@@ -1,5 +1,6 @@
1
var SourceMapConsumer = require('source-map').SourceMapConsumer;
2
var path = require('path');
3
+var util = require('util');
4
5
var fs;
6
try {
@@ -497,7 +498,13 @@ function printErrorAndExit (error) {
497
498
console.error(source);
499
}
500
- console.error(error);
501
+ // Matches node's behavior for colorized output
502
+ console.error(
503
+ util.inspect(error, {
504
+ customInspect: false,
505
+ colors: process.stderr.isTTY
506
+ })
507
+ );
508
process.exit(1);
509
510
0 commit comments