Skip to content

Commit dfdf8cd

Browse files
roshan04Karan Nagpal
authored andcommitted
priting error message while buildartifacts fails
1 parent d749c3a commit dfdf8cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/helpers/buildArtifacts.js

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

1415

1516
let BUILD_ARTIFACTS_TOTAL_COUNT = 0;
@@ -203,6 +204,8 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs) => {
203204
await sendUpdatesToBstack(bsConfig, buildId, args, options, rawArgs);
204205
utils.sendUsageReport(bsConfig, args, message, messageType, null, null, rawArgs);
205206
} catch (err) {
207+
208+
logger.error(err.message);
206209
messageType = Constants.messageTypes.ERROR;
207210
errorCode = 'api_failed_build_artifacts';
208211

0 commit comments

Comments
 (0)