Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
correctly return message error if exists (#224)
previously we were checking if the message had an error (which happens when the message fails to be decoded as json) and then we were promptly returning the nil error previously returned from the method request. Now we capture the error returned by the `resp.Error()` method and return the error if one exists. Signed-off-by: Mike Mason <[email protected]>
- Loading branch information