Skip to content

Commit cdb0d5c

Browse files
author
Calvin Lobo
committed
fixed lint erro
1 parent 3684ee5 commit cdb0d5c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ecosystem/grpc/client_interceptor.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ func ReturnSimpleErrors(registry *Registry) grpc.UnaryClientInterceptor {
3434
}
3535

3636
grpcCode := codes.Unknown
37-
msg := err.Error()
3837

39-
serr := simplerr.New(msg).Attr(AttrGRPCMethod, method) // nolint: govet
38+
serr := simplerr.Wrap(err).Attr(AttrGRPCMethod, method) // nolint: govet
4039

4140
// Check if the error is a gRPC status error
4241
// The GRPC framework seems to always return grpc errors on the client side, even if the server does not

0 commit comments

Comments
 (0)