From eb3c42de8ff0e3d104b1a905da7a3cb9a6f34fbf Mon Sep 17 00:00:00 2001 From: Spythere Date: Sat, 4 Apr 2026 23:41:47 +0200 Subject: [PATCH] chore(http): added error throw on bad response --- src/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.ts b/src/http.ts index ca54329..f23e062 100644 --- a/src/http.ts +++ b/src/http.ts @@ -15,7 +15,7 @@ export class HttpClient { const data = await fetch(absoluteURL); if (!data.ok) { - throw new Error(`Cannot fetch: ${absoluteURL}`); + throw new Error(`Cannaot fetch: ${absoluteURL}`); } return data.json();