From 5f2a002d28bb3fc83fa78c7969464aa9f394107f Mon Sep 17 00:00:00 2001 From: afterlifepro Date: Fri, 25 Jul 2025 22:14:33 +0100 Subject: [PATCH] Remove annoying error log in now-playing-sse when nothing playing --- src/pages/now-playing-sse.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/now-playing-sse.ts b/src/pages/now-playing-sse.ts index 6cef52a..91cfffe 100644 --- a/src/pages/now-playing-sse.ts +++ b/src/pages/now-playing-sse.ts @@ -28,9 +28,9 @@ export async function GET() { .catch((err) => { if (!(err instanceof SpotifyError)) throw new Error("Unhandled exception"); - console.error(err.code, err.human, err.details); - if (err.code === "NO_CONTENT") return null; + + console.error(err.code, err.human, err.details); return err; }); -- 2.51.2