We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7787a12 + 3ad9647 commit 01209d5Copy full SHA for 01209d5
1 file changed
lib/exception.js
@@ -17,11 +17,15 @@ module.exports = {
17
if (!self.excCaught) {
18
self.excCaught = true;
19
logger.methods.sendException(err, null, function () {
20
- if (exit === true) {
21
- process.exit(1);
22
- }
+ process.stderr.write((err.stack || err) + '\n', exitProcess);
23
});
24
}
+
+ function exitProcess() {
25
+ if (exit === true) {
26
+ process.exit(1);
27
+ }
28
29
30
}());
31
},
@@ -80,4 +84,4 @@ module.exports = {
80
84
81
85
82
86
83
-};
87
+};
0 commit comments