Skip to content

Commit b1a8679

Browse files
LukasHechenbergerTimBeyer
authored andcommitted
fix: Set bad exit code on error
Otherwise circleci does not fail on bad commit messages
1 parent f7a8c4f commit b1a8679

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cli.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/usr/bin/env node
22

3-
require('..').run().catch(console.error)
3+
require('..').run()
4+
.catch(error => {
5+
console.error(error);
6+
process.exitCode = 1;
7+
})

0 commit comments

Comments
 (0)