From a339467d8f769bfad1e7b972f4221446b4638e78 Mon Sep 17 00:00:00 2001 From: v-rogg Date: Wed, 22 Nov 2023 19:13:36 +0100 Subject: [PATCH] Update fetch logging --- src/lib/connection/fetch.pulic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/connection/fetch.pulic.ts b/src/lib/connection/fetch.pulic.ts index 42e7c7a..380b462 100644 --- a/src/lib/connection/fetch.pulic.ts +++ b/src/lib/connection/fetch.pulic.ts @@ -2,7 +2,7 @@ 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()); + console.log(await res.text()); } return res.json() });