remove check for non-empty message as it should always be present

This commit is contained in:
Anton Kaliaev 2017-07-18 13:01:34 +03:00 committed by Ethan Buchman
parent e1fd587ddd
commit b700ed8e31

View File

@ -146,7 +146,7 @@ func unmarshalResponseBytes(responseBytes []byte, result interface{}) (interface
if err != nil { if err != nil {
return nil, errors.Errorf("Error unmarshalling rpc response: %v", err) return nil, errors.Errorf("Error unmarshalling rpc response: %v", err)
} }
if response.Error != nil && response.Error.Message != "" { if response.Error != nil {
return nil, errors.Errorf("Response error: %v", response.Error.Message) return nil, errors.Errorf("Response error: %v", response.Error.Message)
} }
// unmarshal the RawMessage into the result // unmarshal the RawMessage into the result