Skip to content

Commit b3e3590

Browse files
committed
change backs runs.js changes for promise handling
1 parent 7d0f551 commit b3e3590

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

bin/commands/runs.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,14 @@ module.exports = function run(args) {
6969
if (args.sync) {
7070
syncRunner.pollBuildStatus(bsConfig, data).then((exitCode) => {
7171
utils.sendUsageReport(bsConfig, args, `${message}\n${dashboardLink}`, Constants.messageTypes.SUCCESS, null);
72-
7372
process.exit(exitCode);
74-
}).catch((err) => {
75-
logger.error(err);
76-
process.exit(1);
7773
});
78-
} else {
79-
logger.info(message);
80-
logger.info(dashboardLink);
81-
utils.sendUsageReport(bsConfig, args, `${message}\n${dashboardLink}`, Constants.messageTypes.SUCCESS, null);
82-
process.exit(2);
8374
}
75+
76+
logger.info(message);
77+
logger.info(dashboardLink);
78+
utils.sendUsageReport(bsConfig, args, `${message}\n${dashboardLink}`, Constants.messageTypes.SUCCESS, null);
79+
return;
8480
}).catch(function (err) {
8581
// Build creation failed
8682
logger.error(err);

0 commit comments

Comments
 (0)