capitalize RpcError

This commit is contained in:
Anton Kaliaev
2017-07-18 13:08:51 +03:00
committed by Ethan Buchman
parent 2252071866
commit e36c79f713
2 changed files with 6 additions and 6 deletions

View File

@ -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)