mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:41:09 +02:00
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:
parent
dad174a631
commit
422eb9f61b
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue