Skip to content

Commit 3ce86b0

Browse files
committed
Merge branch 'rewrite-storage' of github.com:alexforsyth/aws-sdk-js-v3 into rewrite-storage
2 parents 005b637 + 2b5e682 commit 3ce86b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/storage/src/Upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class Upload extends EventEmitter {
155155
// Create and start concurrent uploads.
156156
await Promise.all(this.concurrentUploaders);
157157
if (this.abortController.signal.aborted) {
158-
return {} as ServiceOutputTypes;
158+
throw Object.assign(new Error("Upload aborted."), { name: "AbortError" });
159159
}
160160

161161
this.uploadedParts.sort((a, b) => a.PartNumber! - b.PartNumber!);

0 commit comments

Comments
 (0)