Skip to content

Commit

Permalink
Update fetch logging
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rogg committed Nov 22, 2023
1 parent 736da44 commit a339467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/connection/fetch.pulic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export async function get<T>(url: RequestInfo | URL, f = fetch): Promise<T> {
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()
});
Expand Down

0 comments on commit a339467

Please sign in to comment.