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.
1 parent e0ea40d commit 2b5e682Copy full SHA for 2b5e682
lib/storage/src/Upload.ts
@@ -154,7 +154,7 @@ export class Upload extends EventEmitter {
154
// Create and start concurrent uploads.
155
await Promise.all(this.concurrentUploaders);
156
if (this.abortController.signal.aborted) {
157
- return {} as ServiceOutputTypes;
+ throw Object.assign(new Error("Upload aborted."), { name: "AbortError" });
158
}
159
160
this.uploadedParts.sort((a, b) => a.PartNumber! - b.PartNumber!);
0 commit comments