From 422eb9f61b996edf0014e1b0f07228ed1824ce0d Mon Sep 17 00:00:00 2001 From: Till JS Date: Thu, 9 Apr 2026 16:19:19 +0200 Subject: [PATCH] fix(mana/web/who): log sendMessage failures to console MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The PlayView's send() catch sets a local `error` state which renders as a small banner near the input — easy to miss when the chat area is the first thing the eye looks at after pressing send. Add an explicit console.error so the next time something goes wrong end to end, the actual exception is one DevTools tab away instead of "my message disappeared and I have no idea why". Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/mana/apps/web/src/lib/modules/who/views/PlayView.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/mana/apps/web/src/lib/modules/who/views/PlayView.svelte b/apps/mana/apps/web/src/lib/modules/who/views/PlayView.svelte index b90ffb46e..e7c8efeb5 100644 --- a/apps/mana/apps/web/src/lib/modules/who/views/PlayView.svelte +++ b/apps/mana/apps/web/src/lib/modules/who/views/PlayView.svelte @@ -58,6 +58,7 @@ inputText = ''; await whoGamesStore.sendMessage(gameId, text); } catch (e) { + console.error('[who] sendMessage failed', e); error = e instanceof Error ? e.message : 'Nachricht fehlgeschlagen'; } finally { sending = false;