Merge pull request #3828 from ethereum/soltest

Show JSON error if jsonParseStrict failed in soltest
This commit is contained in:
chriseth
2018-04-05 15:22:26 +02:00
committed by GitHub
+3 -1
View File
@@ -339,7 +339,9 @@ Json::Value RPCSession::rpcCall(string const& _methodName, vector<string> const&
BOOST_TEST_MESSAGE("Reply: " + reply);
Json::Value result;
BOOST_REQUIRE(jsonParseStrict(reply, result));
string errorMsg;
if (!jsonParseStrict(reply, result, &errorMsg))
BOOST_REQUIRE_MESSAGE(false, errorMsg);
if (result.isMember("error"))
{