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

This commit is contained in:
Anton Kaliaev
2017-09-18 16:36:03 -04:00
committed by Ethan Buchman
parent e1fd587ddd
commit b700ed8e31
+1 -1
View File
@@ -146,7 +146,7 @@ func unmarshalResponseBytes(responseBytes []byte, result interface{}) (interface
if err != nil {
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)
}
// unmarshal the RawMessage into the result