From 4f57e42d26760d51393bba8812babbedca3c9c02 Mon Sep 17 00:00:00 2001 From: Samidy Date: Fri, 17 Apr 2026 02:21:19 +0300 Subject: [PATCH] School Girl Sashimi --- js/HiFi.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/js/HiFi.ts b/js/HiFi.ts index 255968e..eb51584 100644 --- a/js/HiFi.ts +++ b/js/HiFi.ts @@ -1340,12 +1340,16 @@ class HiFiClient { force: unauthorized, }); - res = await fetch(final, { - headers: { - authorization: `Bearer ${token}`, - }, - signal, - }); + try { + res = await fetch(final, { + headers: { + authorization: `Bearer ${token}`, + }, + signal, + }); + } catch (err: unknown) { + throw new ResponseError(0, err instanceof Error ? err.message : String(err)); + } if (previousResponse && unauthorized && res.status === 401) { throw new ResponseError(401, 'Unauthorized: Invalid or expired token');