1
0
Fork 0

adding catch to upload zip

pull/1700/head
Vallie Joseph 2024-03-28 21:12:51 +00:00
parent 6d94ad125b
commit a2852cee6f
1 changed files with 5 additions and 1 deletions

View File

@ -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,