Skip to content

TEL-420: use psrpc error if possible#612

Merged
hechen-eng merged 2 commits intomainfrom
err_handling
Mar 13, 2026
Merged

TEL-420: use psrpc error if possible#612
hechen-eng merged 2 commits intomainfrom
err_handling

Conversation

@hechen-eng
Copy link
Copy Markdown
Contributor

No description provided.

@hechen-eng hechen-eng requested a review from a team as a code owner March 11, 2026 23:58
if err := call.connectToRoom(ctx, room, c.getRoom); err != nil {
call.close(ctx, errors.Wrap(err, "room join failed"), callDropped, "join-failed", livekit.DisconnectReason_UNKNOWN_REASON)
return nil, fmt.Errorf("update room failed: %w", err)
return nil, psrpc.NewError(psrpc.Internal, fmt.Errorf("update room failed: %w", err))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just clarifying.. this will still be a 500 right ? I agree that it should be the case.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it'll be a 5xx 👍

@hechen-eng hechen-eng merged commit 1d92a86 into main Mar 13, 2026
6 checks passed
@hechen-eng hechen-eng deleted the err_handling branch March 13, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants