We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3684ee5 commit cdb0d5cCopy full SHA for cdb0d5c
ecosystem/grpc/client_interceptor.go
@@ -34,9 +34,8 @@ func ReturnSimpleErrors(registry *Registry) grpc.UnaryClientInterceptor {
34
}
35
36
grpcCode := codes.Unknown
37
- msg := err.Error()
38
39
- serr := simplerr.New(msg).Attr(AttrGRPCMethod, method) // nolint: govet
+ serr := simplerr.Wrap(err).Attr(AttrGRPCMethod, method) // nolint: govet
40
41
// Check if the error is a gRPC status error
42
// The GRPC framework seems to always return grpc errors on the client side, even if the server does not
0 commit comments