diff --git a/index.js b/index.js index 8351437..bdfe985 100644 --- a/index.js +++ b/index.js @@ -58,7 +58,7 @@ async function fetchApi(token, query) { }); if (statusCode !== 200) { - throw new Error(`API Status Code: ${statusCode}`); + throw new Error(`API Status Code: ${statusCode}, ${await body.text()}`); } const data = await body.json();