We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 398a3cd commit 2a26b16Copy full SHA for 2a26b16
1 file changed
lib/uploader/uploader.ts
@@ -599,6 +599,11 @@ export class Uploader {
599
upload.status = UploadStatus.CANCELLED
600
reject(new UploadCancelledError(error))
601
} else {
602
+ // Attach response to the upload object
603
+ if ((error as AxiosError)?.response) {
604
+ upload.response = (error as AxiosError).response as AxiosResponse
605
+ }
606
+
607
upload.status = UploadStatus.FAILED
608
reject(t('Failed to assemble the chunks together'))
609
}
0 commit comments