From c888c465d5f110c9ea6beb68e83d46382fa3bffd Mon Sep 17 00:00:00 2001 From: XShine555 Date: Mon, 20 Jul 2026 07:28:17 +0200 Subject: [PATCH] fix(web): clear svelte-check warnings and log playback failures The seeded $state initialisers in PlaylistForm intentionally capture the prop once; untrack() states that instead of tripping state_referenced_locally. The player now logs the caught exception rather than discarding it. --- frontend/src/lib/components/ui/PlaylistForm.svelte | 5 +++-- frontend/src/lib/player/player.svelte.ts | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/lib/components/ui/PlaylistForm.svelte b/frontend/src/lib/components/ui/PlaylistForm.svelte index 36eb042..c2a317a 100644 --- a/frontend/src/lib/components/ui/PlaylistForm.svelte +++ b/frontend/src/lib/components/ui/PlaylistForm.svelte @@ -1,4 +1,5 @@ diff --git a/frontend/src/lib/player/player.svelte.ts b/frontend/src/lib/player/player.svelte.ts index d641ab6..f874cb0 100644 --- a/frontend/src/lib/player/player.svelte.ts +++ b/frontend/src/lib/player/player.svelte.ts @@ -274,7 +274,8 @@ class PlayerState { this.loading = false; this.#retriedId = null; this.#pushRecent(this.current); - } catch { + } catch (exception) { + console.error('playback failed', exception); if (token !== this.#loadToken) return; this.loading = false; this.playing = false;