Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap errors in rpc.Conn.receive #540

Merged
merged 1 commit into from
Aug 7, 2023
Merged

Conversation

lthibault
Copy link
Collaborator

This PR labels errors returned from message handlers in rpc.Conn.receive. There is no functional change. The intent is to facilitate debugging.

Note that this reverts #364, which may impact embedded applications wishing to reduce binary size. At this point, I think we need to bias towards developer productivity, but I would like to keep this in mind and remove fmt at a later time.

@lthibault lthibault self-assigned this Aug 7, 2023
rpc/rpc.go Show resolved Hide resolved
Copy link
Collaborator

@davidhubbard davidhubbard left a comment

Choose a reason for hiding this comment

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

Approved, pretty straightforward

@lthibault lthibault merged commit 93062cf into main Aug 7, 2023
0 of 4 checks passed
@lthibault lthibault deleted the cleanup/handler-error-context branch August 7, 2023 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants