Skip to content

Commit

Permalink
Stringify event error
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <[email protected]>
  • Loading branch information
mcandeia committed Sep 19, 2023
1 parent 638660c commit 7641cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const asChannel = async <Send, Recv>(
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()]);
Expand Down

0 comments on commit 7641cb7

Please sign in to comment.