We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 005b637 + 2b5e682 commit 3ce86b0Copy full SHA for 3ce86b0
lib/storage/src/Upload.ts
@@ -155,7 +155,7 @@ export class Upload extends EventEmitter {
155
// Create and start concurrent uploads.
156
await Promise.all(this.concurrentUploaders);
157
if (this.abortController.signal.aborted) {
158
- return {} as ServiceOutputTypes;
+ throw Object.assign(new Error("Upload aborted."), { name: "AbortError" });
159
}
160
161
this.uploadedParts.sort((a, b) => a.PartNumber! - b.PartNumber!);
0 commit comments