Compare commits

...

3 commits

Author SHA1 Message Date
Cat /dev/Nulo dd6c719809 0.2.7 2023-01-20 00:09:37 -03:00
Cat /dev/Nulo 05f40628b1 uploadBlobs: don't fail wrongly on verification 2023-01-20 00:09:27 -03:00
Cat /dev/Nulo 098d4ffa4c 0.2.6 2023-01-17 11:10:16 -03:00
2 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@nulo/isogit-lfs",
"version": "0.2.5",
"version": "0.2.7",
"description": "LFS helpers for Isomorphic Git",
"main": "src/index.ts",
"repository": "git@github.com:riboseinc/isogit-lfs.git",

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