Skip to content

Commit 493745b

Browse files
committed
zip deletion metric fix
1 parent 7e703fd commit 493745b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/commands/runs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,8 @@ module.exports = function run(args, rawArgs) {
468468
utils.sendUsageReport(bsConfig, args, `${err}\n${Constants.userMessages.LOCAL_START_FAILED}`, Constants.messageTypes.ERROR, 'local_start_failed', buildReportData, rawArgs);
469469
} else {
470470
logger.error(Constants.userMessages.ZIP_UPLOAD_FAILED);
471-
fileHelpers.deleteZip();
472471
utils.sendUsageReport(bsConfig, args, `${err}\n${Constants.userMessages.ZIP_UPLOAD_FAILED}`, Constants.messageTypes.ERROR, 'zip_upload_failed', buildReportData, rawArgs);
472+
fileHelpers.deleteZip();
473473
try {
474474
fileHelpers.deletePackageArchieve();
475475
} catch (err) {

bin/helpers/fileHelpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ exports.deleteZip = () => {
3232
return 0;
3333
} catch (err) {
3434
logger.info(Constants.userMessages.ZIP_DELETE_FAILED);
35-
return 1;
35+
throw err;
3636
}
3737
};
3838

0 commit comments

Comments
 (0)