Skip to content

Commit

Permalink
show github errors
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 5, 2025
1 parent b0e05a2 commit c7fc610
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit c7fc610

Please sign in to comment.