Skip to content

Commit de1f986

Browse files
committed
🐛 fix for getting initial details api
1 parent 1c29d31 commit de1f986

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/helpers/getInitialDetails.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ exports.getInitialDetails = (bsConfig, args, rawArgs) => {
3939
resolve(responseData);
4040
}
4141
} catch (error) {
42-
if(error.response) {
43-
logger.warn(utils.formatRequest(error.response.statusText, error.response, error.response.data));
44-
utils.sendUsageReport(bsConfig, args, error.response, Constants.messageTypes.ERROR, 'get_initial_details_failed', null, rawArgs);
42+
if(error.response && error.response.status !== 200) {
43+
logger.warn(`Warn: Get Initial Details Request failed with status code ${error.response.status}`);
44+
utils.sendUsageReport(bsConfig, args, error.response.data["error"], Constants.messageTypes.ERROR, 'get_initial_details_failed', null, rawArgs);
4545
}
4646
resolve({});
4747
}

0 commit comments

Comments
 (0)