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
commit 95b0589f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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