Skip to content

Commit

Permalink
Exit with non-zero exit code on error
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jul 25, 2019
1 parent 6f07550 commit 33e3ef8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion bin/generate-infobook-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,8 @@ async function create() {
}, assetsPaths);
}

create();
create().catch((e) => {
// tslint:disable-next-line:no-console
console.error(e);
process.exit(1);
});
6 changes: 5 additions & 1 deletion bin/generate-mod-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,8 @@ Options:
process.exit(1);
}

run(args._[1], args._[0]);
run(args._[1], args._[0]).catch((e) => {
// tslint:disable-next-line:no-console
console.error(e);
process.exit(1);
});

0 comments on commit 33e3ef8

Please sign in to comment.