Skip to content

Commit

Permalink
Fix return HTTP 403 reason with or without verbose (snobu#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
snobu authored Jan 26, 2021
1 parent b522671 commit 3c7d61f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export class ApiClient {
return true;
}
logger.warn(`Got HTTP code ${err?.response?.status ?? undefined}. Retrying request...`);
logger.verbose('Here is the error message: ');
logger.warn('Here is the error message: ');
console.dir(err.response?.data);
logger.verbose('We called this URL: ' + err.response?.config.baseURL + err.response?.config.url);
logger.warn('We called this URL: ' + err.response?.config.baseURL + err.response?.config.url);

const shouldRetry: boolean = retryCodes.includes(err?.response?.status ?? 0);

Expand Down

0 comments on commit 3c7d61f

Please sign in to comment.