From aeaeee16fdae59f69ded4f294f957f5c8b8dd464 Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Tue, 21 Jul 2020 12:22:56 +0300
Subject: [PATCH] Log error codes in web service

---
 web-service/server/src/peer.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/web-service/server/src/peer.js b/web-service/server/src/peer.js
index c31ee2426..f55f522c3 100644
--- a/web-service/server/src/peer.js
+++ b/web-service/server/src/peer.js
@@ -71,8 +71,8 @@ function Peer(ws) {
 		this._notify("disconnect", this);
 	}
 
-	let error = () => {
-		console.error("Socket error");
+	let error = (e) => {
+		console.error("Socket error: ", e);
 		this.sock.close();
 		this.status = kDisconnected;
 	}
-- 
GitLab