Skip to content

Commit 0dcc150

Browse files
authored
Do not wrap errors for invocations (#187)
Fix #186
1 parent a9c6bcb commit 0dcc150

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/invoke.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func (c *GRPCClient) invokeServiceWithRequest(ctx context.Context, req *pb.Invok
2626

2727
resp, err := c.protoClient.InvokeService(c.withAuthToken(ctx), req)
2828
if err != nil {
29-
return nil, errors.Wrap(err, "error invoking service")
29+
return nil, err
3030
}
3131

3232
// allow for service to not return any value

service/grpc/invoke.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (s *Server) OnInvoke(ctx context.Context, in *cpb.InvokeRequest) (*cpb.Invo
4343

4444
ct, er := fn(ctx, e)
4545
if er != nil {
46-
return nil, errors.Wrap(er, "error executing handler")
46+
return nil, er
4747
}
4848

4949
if ct == nil {

0 commit comments

Comments
 (0)