aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webAO/client.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/webAO/client.js b/webAO/client.js
index eca41da..44a130c 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -186,6 +186,7 @@ class Client {
* @param {CloseEvent} e
*/
onClose(e) {
+ console.error(`The connection was closed: ${e.reason} (${e.code})`);
document.getElementById("client_error").style.display = "block";
this.cleanup();
}
@@ -213,6 +214,7 @@ class Client {
* @param {ErrorEvent} e
*/
onError(e) {
+ console.error(`A network error occurred: ${e.reason} (${e.code})`);
document.getElementById("client_error").style.display = "block";
this.cleanup();
}