aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorDavid Skoland <davidskoland@gmail.com>2023-11-22 21:39:12 +0100
committerDavid Skoland <davidskoland@gmail.com>2023-11-22 21:39:12 +0100
commit6abdca42654d3eab390eb9cbe6cc91f6e2b12431 (patch)
treea55b8dda3122ec6705968eb2de77289ae471b5d3 /webAO
parentb0f6ebd5a1a7391b5a9f0165cab01f23da3461da (diff)
Also log the error itself on error
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/webAO/client.ts b/webAO/client.ts
index fde7f15..3b84c56 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();
}