Better error messages from backend, avoid bad toasts, cleanup of session validation.

This commit is contained in:
Leo Vasanko
2025-12-02 16:37:27 +00:00
parent 77d8e97dc9
commit a05d4aec81
8 changed files with 33 additions and 44 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ class AwaitableWebSocket extends WebSocket {
throw new Error("Failed to parse JSON from WebSocket message")
}
if (parsed.detail) {
throw new Error(`Server: ${parsed.detail}`)
throw new Error(parsed.detail)
}
return parsed
}