From 6abdca42654d3eab390eb9cbe6cc91f6e2b12431 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Wed, 22 Nov 2023 21:39:12 +0100 Subject: [PATCH] Also log the error itself on error --- webAO/client.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/webAO/client.ts b/webAO/client.ts index fde7f151..3b84c56f 100644 --- a/webAO/client.ts +++ b/webAO/client.ts @@ -337,6 +337,7 @@ class Client extends EventEmitter { onError(e: ErrorEvent) { client.state = clientState.NotConnected; console.error(`A network error occurred`); + console.error(e); document.getElementById("client_error").style.display = "flex"; this.cleanup(); }