Skip to content

Commit

Permalink
fix: exit with non-zero if failed (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eunjae Lee authored Aug 7, 2019
1 parent 7f739b4 commit 64e9626
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/shipjs/bin/shipjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@

require = require('esm')(module /*, options*/);
(async function() {
await require('../src/cli').cli(process.argv);
try {
await require('../src/cli').cli(process.argv);
} catch (e) {
console.error(e);
process.exit(1);
}
})();

0 comments on commit 64e9626

Please sign in to comment.