You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It implements status.Status is not accurate.
It should be something like It is an error generated from status.Status and can be converted back to status.Status. status.FromError should work for this error.
Sorry for the confusion. This should be fixed in #1418.
Please answer these questions before submitting your issue.
What version of gRPC are you using?
1.5.1
What version of Go are you using (
go version
)?go1.8.1 darwin/amd64
What operating system (Linux, Windows, …) and version?
MacOS 10.12.5
What did you do?
The stats documentation at
grpc-go/stats/stats.go
Line 172 in b463cc3
Since the type of
Error
iserror
, I tried casting it tostatus.Status
like this:What did you expect to see?
I expected to be able to cast the error to a status.Status and call
Code()
on it 😄What did you see instead?
this error from the compiler:
The text was updated successfully, but these errors were encountered: