diff --git a/rpc/lib/client/http_client.go b/rpc/lib/client/http_client.go index 734ac5b17..b64aea30a 100644 --- a/rpc/lib/client/http_client.go +++ b/rpc/lib/client/http_client.go @@ -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