mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Ensure that a valid RPC response is received through IPC
This commit is contained in:
parent
b66d9c3258
commit
43bae9dd0b
@ -302,7 +302,7 @@ Json::Value RPCSession::rpcCall(string const& _methodName, vector<string> const&
|
|||||||
//cout << "Reply: " << reply << endl;
|
//cout << "Reply: " << reply << endl;
|
||||||
|
|
||||||
Json::Value result;
|
Json::Value result;
|
||||||
Json::Reader().parse(reply, result, false);
|
BOOST_REQUIRE(Json::Reader().parse(reply, result, false));
|
||||||
|
|
||||||
if (result.isMember("error"))
|
if (result.isMember("error"))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user