Skip to content

Commit

Permalink
Ensure exit with code
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Mar 26, 2022
1 parent 38055d4 commit 0253edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async function e_call(argv, script, ...args) {

process.on('exit', function (code) {
if (code == 0) return;
_print_data(code, '\nExit with code ');
throw 'Exit with code: ' + code;
});
}

Expand Down

0 comments on commit 0253edf

Please sign in to comment.