diff --git a/src/lib/connection/fetch.pulic.ts b/src/lib/connection/fetch.pulic.ts index 78c135c..42e7c7a 100644 --- a/src/lib/connection/fetch.pulic.ts +++ b/src/lib/connection/fetch.pulic.ts @@ -1,6 +1,9 @@ export async function get(url: RequestInfo | URL, f = fetch): Promise { return f(url).then(async (res) => { console.log(res.status, res.statusText); + if (res.status != 200) { + console.log(res.text()); + } return res.json() }); } \ No newline at end of file