@@ -10,7 +10,6 @@ const logger = require('./logger').winstonLogger,
10
10
utils = require ( "./utils" ) ,
11
11
Constants = require ( "./constants" ) ,
12
12
config = require ( "./config" ) ;
13
- const { inspect } = require ( 'util' ) ;
14
13
15
14
16
15
let BUILD_ARTIFACTS_TOTAL_COUNT = 0 ;
@@ -204,8 +203,6 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs) => {
204
203
await sendUpdatesToBstack ( bsConfig , buildId , args , options , rawArgs ) ;
205
204
utils . sendUsageReport ( bsConfig , args , message , messageType , null , null , rawArgs ) ;
206
205
} catch ( err ) {
207
-
208
- logger . error ( err . message ) ;
209
206
messageType = Constants . messageTypes . ERROR ;
210
207
errorCode = 'api_failed_build_artifacts' ;
211
208
@@ -218,6 +215,7 @@ exports.downloadBuildArtifacts = async (bsConfig, buildId, args, rawArgs) => {
218
215
}
219
216
220
217
utils . sendUsageReport ( bsConfig , args , err , messageType , errorCode , null , rawArgs ) ;
218
+ logger . error ( err . message ) ;
221
219
process . exitCode = Constants . ERROR_EXIT_CODE ;
222
220
}
223
221
} ;
0 commit comments