Skip to content

Commit

Permalink
Also log the error itself on error
Browse files Browse the repository at this point in the history
  • Loading branch information
OmniTroid committed Nov 22, 2023
1 parent b0f6ebd commit 6abdca4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webAO/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 6abdca4

Please sign in to comment.