Skip to content

Commit 53719a4

Browse files
lukaszmorozjimthedev
authored andcommitted
fix(cli): Don't print error stack trace if git-cz failed (#436) (#437)
1 parent 2e283a3 commit 53719a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/git-cz.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
var path = require('path');
2+
3+
process.on('uncaughtException', function (err) {
4+
console.error(err.message || err);
5+
process.exit(1);
6+
})
7+
28
require('../dist/cli/git-cz.js').bootstrap({
39
cliPath: path.join(__dirname, '../')
410
});

0 commit comments

Comments
 (0)