-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Go - Write sample code for setting and reading error details #478
Comments
Is this something I can take a shot at? I've been playing with grpc and wonder if the following example would work: Creating a grpc error: |
You're very very welcome to give it a shot! More specifically, we'd want a sample that shows sending an error with metadata attached in the HTTP/2 trailers, as well as reading that metadata from the client. That being the recommended way to specify error details when the error code isn't enough to make the error actionable. |
Fixed in #506. @jcanizales PTAL |
That PR was not merged.. A different sample is necessary with the recentish changes to status. (And now with the helpers added in #1358.) |
Correct! Trailers are still useful. However, for detailed error information, |
Go issue for grpc/grpc#4543
The text was updated successfully, but these errors were encountered: