Skip to content

Commit

Permalink
handle process exit
Browse files Browse the repository at this point in the history
  • Loading branch information
aquiladev committed Apr 30, 2020
1 parent c7c428f commit 8b612bd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
const run = require('./runner');

try {
run();
process.exit(0);
} catch (_) {
process.exit(1);
}
run()
.then(() => process.exit(0))
.catch(() => process.exit(1));

0 comments on commit 8b612bd

Please sign in to comment.