From 7641cb7595f56d439ab34a6563efc8cf93e85823 Mon Sep 17 00:00:00 2001 From: Marcos Candeia Date: Tue, 19 Sep 2023 10:55:55 -0300 Subject: [PATCH] Stringify event error Signed-off-by: Marcos Candeia --- security/channel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/channel.ts b/security/channel.ts index 7f81cf1..e032ae6 100644 --- a/security/channel.ts +++ b/security/channel.ts @@ -69,7 +69,7 @@ export const asChannel = async ( recv.push(event.data); }); socket.addEventListener("error", (event) => { - console.log("error", event); + console.log("error", JSON.stringify(event.error), event.message); }); await Promise.race([ready.wait(), closed.wait()]);