Skip to content

Commit

Permalink
use a different error code for publish data (#1374)
Browse files Browse the repository at this point in the history
* use a different error code for publish data

previously two diff errors were using the same code 13

* changeset
  • Loading branch information
davidzhao authored Jan 21, 2025
1 parent 0b6fcac commit 8871f4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nervous-mayflies-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'livekit-client': patch
---

use a error code 14 for data publish errors
2 changes: 1 addition & 1 deletion src/room/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class NegotiationError extends LivekitError {

export class PublishDataError extends LivekitError {
constructor(message?: string) {
super(13, message ?? 'unable to publish data');
super(14, message ?? 'unable to publish data');
}
}

Expand Down

0 comments on commit 8871f4e

Please sign in to comment.