Skip to content

Commit 7001d47

Browse files
committed
Add rejected to the exit code
1 parent 75093bc commit 7001d47

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

commands/utils/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ constants.VALID_BROWSERS = ['chrome', 'safari', 'firefox', 'edge'];
2525
// Error codes
2626
constants.ERROR_CATCHALL = 1
2727
constants.ERROR_BUILD_ALREADY_EXISTS = 3
28-
constants.ERROR_CHANGES_FOUND = 4
28+
constants.ERROR_CHANGES_FOUND_OR_REJECTED = 4
2929

3030
module.exports = { constants };

commands/utils/polling.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ async function shortPolling(buildId, retries = 0, options) {
4040
});
4141
console.log(table.toString());
4242

43-
if (response.data.buildResults.changesFound != 0) {
44-
process.exitCode = constants.ERROR_CHANGES_FOUND;
43+
if (response.data.buildResults.changesFound != 0 || response.data.buildResults.rejected != 0) {
44+
process.exitCode = constants.ERROR_CHANGES_FOUND_OR_REJECTED;
4545
}
4646
})
4747
} else {

0 commit comments

Comments
 (0)