From: David NĂ©grier Date: Wed, 13 May 2020 20:11:05 +0000 (+0200) Subject: More detailed error log to debug disconnect issue X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=11972555ee3c0fbf75ac368b3495a8e38e7162b4;p=libreadventure.git More detailed error log to debug disconnect issue --- diff --git a/back/src/Model/Websocket/Message.ts b/back/src/Model/Websocket/Message.ts index 20df980..ccf5d28 100644 --- a/back/src/Model/Websocket/Message.ts +++ b/back/src/Model/Websocket/Message.ts @@ -6,6 +6,7 @@ export class Message { constructor(data: any) { if (!data.userId || !data.roomId) { + console.error("Got invalid message", data); throw Error("userId or roomId cannot be null"); } this.userId = data.userId;