Skip to content

Commit a7d07b3

Browse files
committed
zip deletion metric fix
1 parent 9705488 commit a7d07b3

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
@@ -471,8 +471,8 @@ module.exports = function run(args, rawArgs) {
471471
utils.sendUsageReport(bsConfig, args, `${err}\n${Constants.userMessages.LOCAL_START_FAILED}`, Constants.messageTypes.ERROR, 'local_start_failed', buildReportData, rawArgs);
472472
} else {
473473
logger.error(Constants.userMessages.ZIP_UPLOAD_FAILED);
474-
fileHelpers.deleteZip();
475474
utils.sendUsageReport(bsConfig, args, `${err}\n${Constants.userMessages.ZIP_UPLOAD_FAILED}`, Constants.messageTypes.ERROR, 'zip_upload_failed', buildReportData, rawArgs);
475+
fileHelpers.deleteZip();
476476
try {
477477
fileHelpers.deletePackageArchieve();
478478
} 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)