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