@@ -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
1615let 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