uploadBlobs: don't fail wrongly on verification
This commit is contained in:
parent
098d4ffa4c
commit
05f40628b1
1 changed files with 4 additions and 3 deletions
|
@ -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}`
|
||||
);
|
||||
}
|
||||
})
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue