From a2852cee6feabc1ba06b54c6d6890ab546a2d951 Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Thu, 28 Mar 2024 21:12:51 +0000 Subject: [PATCH] adding catch to upload zip --- packages/artifact/src/internal/upload/upload-artifact.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/artifact/src/internal/upload/upload-artifact.ts b/packages/artifact/src/internal/upload/upload-artifact.ts index 03c72b5e..f9817262 100644 --- a/packages/artifact/src/internal/upload/upload-artifact.ts +++ b/packages/artifact/src/internal/upload/upload-artifact.ts @@ -76,7 +76,11 @@ export async function uploadArtifact( const uploadResult = await uploadZipToBlobStorage( createArtifactResp.signedUploadUrl, zipUploadStream - ) + ).catch(err => { + throw new InvalidResponseError( + `uploadZipToBlobStorage: response blob was not ok: ${err}` + ) + }) // finalize the artifact const finalizeArtifactReq: FinalizeArtifactRequest = { workflowRunBackendId: backendIds.workflowRunBackendId,