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

Match server twirp errors using errors.As #323

Merged
merged 8 commits into from
Jun 16, 2021

Conversation

marioizquierdo
Copy link
Contributor

@marioizquierdo marioizquierdo commented Jun 12, 2021

Fixes #300

Allow custom errors to present themselves as twirp.Errors using Go 1.11 errors.As.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@marioizquierdo
Copy link
Contributor Author

marioizquierdo commented Jun 12, 2021

Please check the release notes for v8.1.0 for safe update instructions. This change may expose unintentionally wrapped twirp errors inside other non-twirp errors that are returned as internal errors. Not very likely, but it could happen.

@marioizquierdo marioizquierdo merged commit 0f99aaa into main Jun 16, 2021
@marioizquierdo marioizquierdo deleted the match_twirp_error_with_errors_as branch June 16, 2021 07:29
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.

Support an optional ErrorCoder interface for Go servers
1 participant