mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #3828 from ethereum/soltest
Show JSON error if jsonParseStrict failed in soltest
This commit is contained in:
commit
95b0589f77
@ -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"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user