Skip to content

Commit

Permalink
fixes #73 return non zero exit status for error during bitbucket pr c…
Browse files Browse the repository at this point in the history
…ommands
  • Loading branch information
palashkulsh committed Mar 19, 2018
1 parent 3140f65 commit 0892acc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/bitbucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@ requirejs([
'../lib/auth',
'../lib/bitbucket/pr',
], function (program, config, auth, pr) {
function finalCb(){
process.exit();
function finalCb(err){
if(err){
process.exit(1);
}
process.exit(0);
}

program
Expand Down

0 comments on commit 0892acc

Please sign in to comment.