Skip to content
Snippets Groups Projects
Commit aeaeee16 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Log error codes in web service

parent 5f05a0ef
No related branches found
No related tags found
No related merge requests found
Pipeline #28415 passed
...@@ -71,8 +71,8 @@ function Peer(ws) { ...@@ -71,8 +71,8 @@ function Peer(ws) {
this._notify("disconnect", this); this._notify("disconnect", this);
} }
let error = () => { let error = (e) => {
console.error("Socket error"); console.error("Socket error: ", e);
this.sock.close(); this.sock.close();
this.status = kDisconnected; this.status = kDisconnected;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment