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; });