1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-21 07:22:15 +00:00

Merge branch 'master' of https://github.com/snobu/destreamer into aria2c_forRealNow

This commit is contained in:
Luca Armaroli
2020-09-07 14:34:26 +02:00
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);