diff --git a/wasm/src/avs_pc.ts b/wasm/src/avs_pc.ts index 21adf7efa..4d6121c13 100644 --- a/wasm/src/avs_pc.ts +++ b/wasm/src/avs_pc.ts @@ -1194,8 +1194,8 @@ function setupDataChannel(pc: PeerConnection, dc: RTCDataChannel) { pc_log(LOG_LEVEL_INFO, "dc-closed"); ccallDcStateChangeHandler(pc, DC_STATE_CLOSED); }; - dc.onerror = () => { - pc_log(LOG_LEVEL_INFO, "dc-error"); + dc.onerror = event => { + pc_log(LOG_LEVEL_INFO, `dc-error: ${event.error}`); ccallDcStateChangeHandler(pc, DC_STATE_ERROR); }; dc.onmessage = event => {