Personal Site

Remove annoying error log in now-playing-sse when nothing playing

vielle.dev 5f2a002d e46c2ab6

verified
+2 -2
+2 -2
src/pages/now-playing-sse.ts
··· 28 .catch((err) => { 29 if (!(err instanceof SpotifyError)) 30 throw new Error("Unhandled exception"); 31 - console.error(err.code, err.human, err.details); 32 - 33 if (err.code === "NO_CONTENT") return null; 34 return err; 35 }); 36
··· 28 .catch((err) => { 29 if (!(err instanceof SpotifyError)) 30 throw new Error("Unhandled exception"); 31 if (err.code === "NO_CONTENT") return null; 32 + 33 + console.error(err.code, err.human, err.details); 34 return err; 35 }); 36