Skip to content

Commit

Permalink
fix: set exit code on error (#84)
Browse files Browse the repository at this point in the history
This fixes a regression introduced in #65.
  • Loading branch information
splix authored and ofrobots committed Apr 25, 2019
1 parent 4b8a9bb commit 2da6cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const args = argParser.parseArgs();
async function main(): Promise<void> {
const checker =
new LicenseChecker({dev: !!args.dev, verbose: !!args.verbose});
checker.setDefaultHandlers();
checker.setDefaultHandlers({setExitCode: true});
if (args.local) {
await checker.checkLocalDirectory(args.local[0]);
} else if (args.pr) {
Expand Down

0 comments on commit 2da6cc5

Please sign in to comment.