Do not wrap errors for invocations (#187)

Fix #186
This commit is contained in:
Alessandro (Ale) Segala 2021-07-06 08:53:43 -07:00 committed by GitHub
parent a9c6bcb4f4
commit 0dcc1509de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ func (c *GRPCClient) invokeServiceWithRequest(ctx context.Context, req *pb.Invok
resp, err := c.protoClient.InvokeService(c.withAuthToken(ctx), req)
if err != nil {
return nil, errors.Wrap(err, "error invoking service")
return nil, err
}
// allow for service to not return any value

View File

@ -43,7 +43,7 @@ func (s *Server) OnInvoke(ctx context.Context, in *cpb.InvokeRequest) (*cpb.Invo
ct, er := fn(ctx, e)
if er != nil {
return nil, errors.Wrap(er, "error executing handler")
return nil, er
}
if ct == nil {