Skip to content

Commit

Permalink
fix(cli): fail if theres one failing result
Browse files Browse the repository at this point in the history
Fixes #6
  • Loading branch information
stevemao committed Jan 30, 2016
1 parent 8c07bde commit 2814a62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,12 @@ conventionalGithubReleaser({

if (flags.verbose) {
console.log(data);
} else if (data.length === 1) {
var result = data[0];

if (result.state === 'rejected') {
console.log(result.reason.toString());
process.exit(1);
}
}
});

0 comments on commit 2814a62

Please sign in to comment.