diff --git a/src/http.ts b/src/http.ts index 268dffc..d7f7717 100644 --- a/src/http.ts +++ b/src/http.ts @@ -1526,7 +1526,7 @@ export class LemmyHttp { try { json = await response.json(); - } catch (_) { + } catch { throw new Error(response.statusText); }