mirror of https://github.com/dapr/go-sdk.git
parent
a9c6bcb4f4
commit
0dcc1509de
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue