Skip to content

Commit 8860953

Browse files
roshan04Karan Nagpal
authored andcommitted
removing inspect
1 parent dfdf8cd commit 8860953

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bin/helpers/buildArtifacts.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const logger = require('./logger').winstonLogger,
1010
utils = require("./utils"),
1111
Constants = require("./constants"),
1212
config = require("./config");
13-
const { inspect } = require('util');
1413

1514

1615
let BUILD_ARTIFACTS_TOTAL_COUNT = 0;
@@ -204,8 +203,6 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs) => {
204203
await sendUpdatesToBstack(bsConfig, buildId, args, options, rawArgs);
205204
utils.sendUsageReport(bsConfig, args, message, messageType, null, null, rawArgs);
206205
} catch (err) {
207-
208-
logger.error(err.message);
209206
messageType = Constants.messageTypes.ERROR;
210207
errorCode = 'api_failed_build_artifacts';
211208

@@ -218,6 +215,7 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs) => {
218215
}
219216

220217
utils.sendUsageReport(bsConfig, args, err, messageType, errorCode, null, rawArgs);
218+
logger.error(err.message);
221219
process.exitCode = Constants.ERROR_EXIT_CODE;
222220
}
223221
};

0 commit comments

Comments
 (0)