mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-28 20:21:47 +00:00
capitalize RpcError
This commit is contained in:
committed by
Ethan Buchman
parent
2252071866
commit
e36c79f713
@ -422,8 +422,8 @@ func (c *WSClient) readRoutine() {
|
||||
c.ErrorsCh <- err
|
||||
continue
|
||||
}
|
||||
if response.Error != "" {
|
||||
c.ErrorsCh <- errors.Errorf(response.Error)
|
||||
if response.Error != nil {
|
||||
c.ErrorsCh <- errors.New(response.Error.Message)
|
||||
continue
|
||||
}
|
||||
c.Logger.Info("got response", "resp", response.Result)
|
||||
|
Reference in New Issue
Block a user