diff --git a/src/main.ts b/src/main.ts index 4f81cc51..69fb2570 100644 --- a/src/main.ts +++ b/src/main.ts @@ -26,6 +26,7 @@ async function run() { if (res.status >= 400) { // throw an error error(res.status); + return; } // output the status @@ -37,6 +38,7 @@ async function run() { }) .catch((err) => { error(err.status); + return; }); }