Skip to content

Commit

Permalink
Adjust log error to throw error instead so the release job still fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
torreyatcitty committed Aug 20, 2024
1 parent 7e2e45e commit f7fa895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function release(cid, url, signature) {
try {
const json = await res.json();
} catch (error) {
console.error(`Response was not valid JSON: ${error}`);
throw new Error(`Response was not valid JSON: ${error}`);
}

if (json.cid) {
Expand Down

0 comments on commit f7fa895

Please sign in to comment.