Skip to content

Commit

Permalink
Exit with non-zero when error occurs
Browse files Browse the repository at this point in the history
  • Loading branch information
1000ch committed May 30, 2020
1 parent 5ed6680 commit e7aa24e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ bin.run(['-version']).then(() => {
log.success('cwebp built successfully');
}).catch(error => {
log.error(error.stack);

// eslint-disable-next-line unicorn/no-process-exit
process.exit(1);
});
});

0 comments on commit e7aa24e

Please sign in to comment.