Ensure that a valid RPC response is received through IPC

This commit is contained in:
Alex Beregszaszi 2017-02-07 12:32:23 +00:00
parent b66d9c3258
commit 43bae9dd0b

View File

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