diff --git a/src/upload.ts b/src/upload.ts index feabe7d..7a135ac 100644 --- a/src/upload.ts +++ b/src/upload.ts @@ -92,9 +92,10 @@ export default async function uploadBlobs( }, body: JSON.stringify(infos[index]), }); - throw new Error( - `Upload might have been unsuccessful, verification action yielded HTTP ${verificationResp.status}` - ); + if (!resp.ok) + throw new Error( + `Upload might have been unsuccessful, verification action yielded HTTP ${verificationResp.status}` + ); } }) );