Skip to content

Commit 4b981f7

Browse files
authored
fix(cli): Remove broken error handling
data.state is not available when using Q.all() and only works with Q.allSettled(). As Q.all() is now used it does not make sense to do this check as the Promise will be rejected immediately with an error if one of the calls to github fails.
1 parent 757fed0 commit 4b981f7

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/cli.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -115,19 +115,7 @@ conventionalGithubReleaser({
115115
process.exit(0);
116116
}
117117

118-
var allRejected = true;
119-
120-
for (var i = data.length - 1; i >= 0 ; i--) {
121-
if (data[i].state === 'fulfilled') {
122-
allRejected = false;
123-
break;
124-
}
125-
}
126-
127-
if (allRejected) {
128-
console.error(data);
129-
process.exit(1);
130-
} else if (flags.verbose) {
118+
if (flags.verbose) {
131119
console.log(data);
132120
}
133121
});

0 commit comments

Comments
 (0)