Show JSON error if jsonParseStrict failed in soltest

This commit is contained in:
Alex Beregszaszi 2018-04-05 11:59:31 +02:00
parent efa0ccaf9e
commit 7f232358bb

View File

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