Skip to content

Commit

Permalink
Merge branch 'master' into fix_filename_retries_a11y
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavj1001 authored Jan 28, 2025
2 parents 87eafae + c0a748d commit 796dcb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/commands/runs.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ module.exports = function run(args, rawArgs) {
}

// Generate custom report!
reportGenerator(bsConfig, data.build_id, args, rawArgs, buildReportData, function(){
reportGenerator(bsConfig, data.build_id, args, rawArgs, buildReportData, function(modifiedExitCode=exitCode){
utils.sendUsageReport(bsConfig, args, `${message}\n${dashboardLink}`, Constants.messageTypes.SUCCESS, null, buildReportData, rawArgs);
markBlockEnd('postBuild');
utils.handleSyncExit(exitCode, data.dashboard_url);
utils.handleSyncExit(modifiedExitCode, data.dashboard_url);
});
} else if(!turboScaleSession){
let stacktraceUrl = getStackTraceUrl();
Expand Down
3 changes: 3 additions & 0 deletions bin/helpers/reporterHTML.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ let reportGenerator = async (bsConfig, buildId, args, rawArgs, buildReportData,
logger.error('Generating the build report failed.');
logger.error(utils.formatRequest(error.response.statusText, error.response, error.response.data));
utils.sendUsageReport(bsConfig, args, message, messageType, errorCode, buildReportData, rawArgs);
if (cb){
cb(Constants.ERROR_EXIT_CODE);
}
return;
}
}
Expand Down

0 comments on commit 796dcb0

Please sign in to comment.