Skip to content

Commit 894cf02

Browse files
committed
corrected code flow
1 parent f4aafd7 commit 894cf02

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

bin/commands/runs.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ module.exports = function run(args, rawArgs) {
199199
logger.error(message);
200200
utils.sendUsageReport(bsConfig, args, message, Constants.messageTypes.ERROR, null, buildReportData, rawArgs);
201201
}).finally(() =>{
202+
let terminalWidth = (process.stdout.columns) * 0.9;
203+
let lineSeparator = "\n" + "-".repeat(terminalWidth);
204+
console.log(lineSeparator)
202205
logger.info(Constants.userMessages.BUILD_FAILED_ERROR)
203206
process.exitCode = Constants.BUILD_FAILED_EXIT_CODE;
204207
});

bin/helpers/downloadBuildStacktrace.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ const downloadBuildStacktrace = async (url) => {
2020
} else {
2121
reject(response.statusCode);
2222
}
23+
}).on('end', () => {
24+
resolve("Build stacktrace downloaded successfully");
2325
});
2426
});
2527
};

bin/helpers/sync/syncSpecsLogs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ let whileProcess = (whilstCallback) => {
150150
whileLoop = false;
151151
endTime = Date.now();
152152
showSpecsStatus(body);
153-
return specSummary.exitCode == config.buildFailedExitCode ?
153+
return specSummary.exitCode == Constants.BUILD_FAILED_EXIT_CODE ?
154154
whilstCallback({ status: 204, message: "No specs ran in the build"} ) : whilstCallback(null, body);
155155
default:
156156
whileLoop = false;

0 commit comments

Comments
 (0)