1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-02-15 19:19:42 +00:00

Mino changes (#217)

* added Unipr info in the Specialized vesion section

* added response body on API call error (verbose)
This commit is contained in:
lukaarma
2020-09-05 18:03:11 +02:00
committed by GitHub
parent 7fc7c4733a
commit 4545b010b3
2 changed files with 3 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ export class ApiClient {
return true;
}
logger.warn(`Got HTTP code ${err?.response?.status ?? undefined}. Retrying request...`);
logger.verbose(`Here is the error message: \n '${err.response?.data}`);
const shouldRetry: boolean = retryCodes.includes(err?.response?.status ?? 0);