Skip to content

Commit 74175e6

Browse files
committed
removed unnecessary changes
1 parent 768017c commit 74175e6

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

bin/commands/generateDownloads.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module.exports = async function generateDownloads(args, rawArgs) {
4040
}).catch(function (err) {
4141
logger.error(err);
4242
utils.setUsageReportingFlag(null, args.disableUsageReporting);
43-
utils.sendUsageReport(null, args, err.message, Constants.messageTypes.ERROR, utils.getErrorCodeFromErr(err), buildReportData, rawArgs);
43+
utils.sendUsageReport(null, args, err.message, Constants.messageTypes.ERROR, utils.getErrorCodeFromErr(err), null, rawArgs);
4444
process.exitCode = Constants.ERROR_EXIT_CODE;
4545
});
4646
};

bin/commands/generateReport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ module.exports = function generateReport(args, rawArgs) {
4343
}).catch(function (err) {
4444
logger.error(err);
4545
utils.setUsageReportingFlag(null, args.disableUsageReporting);
46-
utils.sendUsageReport(null, args, err.message, Constants.messageTypes.ERROR, utils.getErrorCodeFromErr(err), buildReportData, rawArgs);
46+
utils.sendUsageReport(null, args, err.message, Constants.messageTypes.ERROR, utils.getErrorCodeFromErr(err), null, rawArgs);
4747
process.exitCode = Constants.ERROR_EXIT_CODE;
4848
});
4949
};

bin/commands/runs.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict';
22
const path = require('path');
3-
const { inspect } = require('util');
43

54
const archiver = require("../helpers/archiver"),
65
zipUploader = require("../helpers/zipUpload"),
@@ -52,7 +51,6 @@ module.exports = function run(args, rawArgs) {
5251
'user_id': initDetails.user_id
5352
};
5453

55-
console.log(`roshan1: bhai the initDetails are the ${inspect(buildReportData)}`)
5654
// accept the build name from command line if provided
5755
utils.setBuildName(bsConfig, args);
5856

@@ -271,7 +269,7 @@ module.exports = function run(args, rawArgs) {
271269
// Build creation failed
272270
logger.error(err);
273271
// stop the Local instance
274-
await utils.stopLocalBinary(bsConfig, bs_local, args, rawArgs);
272+
await utils.stopLocalBinary(bsConfig, bs_local, args, rawArgs, buildReportData);
275273

276274
utils.sendUsageReport(bsConfig, args, err, Constants.messageTypes.ERROR, 'build_failed', buildReportData, rawArgs);
277275
process.exitCode = Constants.ERROR_EXIT_CODE;

bin/commands/stop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = function stop(args, rawArgs) {
3737
}).catch(function (err) {
3838
logger.error(err);
3939
utils.setUsageReportingFlag(null, args.disableUsageReporting);
40-
utils.sendUsageReport(null, args, err.message, Constants.messageTypes.ERROR, utils.getErrorCodeFromErr(err), buildReportData, rawArgs);
40+
utils.sendUsageReport(null, args, err.message, Constants.messageTypes.ERROR, utils.getErrorCodeFromErr(err), null, rawArgs);
4141
process.exitCode = Constants.ERROR_EXIT_CODE;
4242
})
4343
}

bin/helpers/getInitialDetails.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ exports.getInitialDetails = (bsConfig, args, rawArgs) => {
3939
}
4040
});
4141
});
42-
};
42+
};

0 commit comments

Comments
 (0)