Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/uploader/uploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,11 @@ export class Uploader {
upload.status = UploadStatus.CANCELLED
reject(new UploadCancelledError(error))
} else {
// Attach response to the upload object
if ((error as AxiosError)?.response) {
upload.response = (error as AxiosError).response as AxiosResponse
}

upload.status = UploadStatus.FAILED
reject(t('Failed to assemble the chunks together'))
}
Expand Down
Loading