From c7fc610bf49887807c5a000bcd1bf379f3fa307c Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Sun, 5 Jan 2025 02:49:29 -0800 Subject: [PATCH] show github errors --- build/github.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/github.js b/build/github.js index f292eec..3b35b29 100644 --- a/build/github.js +++ b/build/github.js @@ -11,6 +11,10 @@ async function fetchGithub(url, params) { 'X-GitHub-Api-Version': '2022-11-28', }, }); + if (res.status !== 200) { + const text = await res.text(); + throw new Error(`url: ${url}\n${text}`); + } return await res.json(); }