diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp index 03b1341cb..c4a38f52e 100644 --- a/test/RPCSession.cpp +++ b/test/RPCSession.cpp @@ -337,7 +337,9 @@ Json::Value RPCSession::rpcCall(string const& _methodName, vector 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")) {