uploadBlobs: don't fail wrongly on verification

This commit is contained in:
Cat /dev/Nulo 2023-01-20 00:09:27 -03:00
parent 098d4ffa4c
commit 05f40628b1

View file

@ -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}`
);
}
})
);