Skip to content

Commit 5360804

Browse files
committed
defer exit on promise.catch(error) to give stdout time to catch up
1 parent 308c93e commit 5360804

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ var errors = [];
5151

5252
function error(err) {
5353
console.error(err.stack);
54-
process.exit(1);
54+
setTimeout(function () {
55+
process.exit(1);
56+
}, 0);
5557
}
5658

5759
function prefixTitle(file) {

0 commit comments

Comments
 (0)