Skip to content

Commit

Permalink
add error code to egress info (#714)
Browse files Browse the repository at this point in the history
* add error code to egress info

* generated protobuf

* add changeset

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
frostbyte73 and github-actions[bot] authored May 13, 2024
1 parent 04372eb commit 511f517
Show file tree
Hide file tree
Showing 5 changed files with 439 additions and 419 deletions.
6 changes: 6 additions & 0 deletions .changeset/angry-boxes-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"github.com/livekit/protocol": patch
"@livekit/protocol": patch
---

Added error code field to EgressInfo
8 changes: 5 additions & 3 deletions egress/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@

package egress

import "errors"
import (
"github.com/livekit/psrpc"
)

var (
ErrNoResponse = errors.New("no response from egress service")
ErrEgressTimedOut = errors.New("egress timed out")
ErrNoResponse = psrpc.NewErrorf(psrpc.Unavailable, "no response from egress service")
ErrEgressTimedOut = psrpc.NewErrorf(psrpc.DeadlineExceeded, "egress timed out")
)
Loading

0 comments on commit 511f517

Please sign in to comment.