diff --git a/src/resumable-upload.ts b/src/resumable-upload.ts index 5a1f71ccc..1f726f36b 100644 --- a/src/resumable-upload.ts +++ b/src/resumable-upload.ts @@ -1231,7 +1231,7 @@ export class Upload extends Writable { if (retryDelay <= 0) { this.destroy( - new Error(`Retry total time limit exceeded - ${resp.data}`) + new Error(`Retry total time limit exceeded - ${JSON.stringify(resp.data)}`) ); return; } @@ -1252,7 +1252,7 @@ export class Upload extends Writable { } this.numRetries++; } else { - this.destroy(new Error('Retry limit exceeded - ' + resp.data)); + this.destroy(new Error(`Retry limit exceeded - ${JSON.stringify(resp.data)}`); } }