commit | ef359cd82a268d5acc3bd5fa3c3ea5cd9a6bca07 | [log] [tgz] |
---|---|---|
author | Raphael von der Grün <raphinesse@gmail.com> | Sun Mar 31 23:28:31 2019 +0200 |
committer | Raphael von der Grün <raphinesse@gmail.com> | Wed Apr 10 08:53:50 2019 +0200 |
tree | 892982b1b695d4dffe28173fd14903cc7c35b0fa | |
parent | 6f1a1c7beb2dddfa00d1a2dec1827362c7ef3350 [diff] |
Set process.exitCode instead of calling process.exit For more details see: https://nodejs.org/api/process.html#process_process_exit_code
diff --git a/main.js b/main.js index f8e207d..6b5b485 100755 --- a/main.js +++ b/main.js
@@ -97,5 +97,5 @@ if (cli_opts.debug) { console.error(error.stack); } - process.exit(1); + process.exitCode = 1; }