From a6e6a01cd01bc3ce4fab88915ce69c9f888019d9 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Wed, 28 Oct 2020 01:42:24 +0100 Subject: [PATCH] Add output of error --- src/websocket.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/websocket.ts b/src/websocket.ts index 658a67b..4293ad1 100644 --- a/src/websocket.ts +++ b/src/websocket.ts @@ -75,6 +75,7 @@ export class WebsocketConnectionManager { const answer = (id: string, data: any, err?: Error | string) => { let error = false; if (err) { + Logging.error(err); if (err instanceof Error) { data = err.message; } else {