From 4da880d74143635a8d9833361d9ec02ef621a1c1 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 12 Oct 2021 23:37:10 +0100 Subject: [PATCH] Console error the error message as well as emitting --- bin/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/utils.js b/bin/utils.js index 453953d..0c9a7b7 100644 --- a/bin/utils.js +++ b/bin/utils.js @@ -180,6 +180,7 @@ const messageListener = (conn, doc, message) => { } } } catch (err) { + console.error(err) doc.emit('error', [err]) } }