Skip to content

Commit

Permalink
Rpc error
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Jun 10, 2024
1 parent 8bb9650 commit cfa9645
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pkg/rpc/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ func post[T any](ctx context.Context, api API, req Request, output *Response[T])
return err
}

if output.Error != nil {
return errors.Wrapf(ErrRequest, "request %d error: %s", output.ID, output.Error.Error())
}

return nil
return output.Error
}

func closeWithLogError(stream io.ReadCloser) {
Expand Down

0 comments on commit cfa9645

Please sign in to comment.