fix(mana/web/who): log sendMessage failures to console

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) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-04-09 16:19:19 +02:00
parent dad174a631
commit 422eb9f61b

View file

@ -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;