Skip to content

Commit 14b4e2f

Browse files
authored
Improve error message for WS errors during connection attempt (#1466)
1 parent cf91919 commit 14b4e2f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/cool-points-guess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"livekit-client": patch
3+
---
4+
5+
Improve error message for WS errors during connection attempt

src/api/SignalClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export class SignalClient {
332332
} else {
333333
reject(
334334
new ConnectionError(
335-
'Internal error',
335+
`Encountered unknown websocket error during connection: ${ev.toString()}`,
336336
ConnectionErrorReason.InternalError,
337337
resp.status,
338338
),

0 commit comments

Comments
 (0)