TestFramework: also output failed request

This commit is contained in:
Mathias Baumann
2019-04-04 16:39:15 +02:00
committed by Mathias Baumann
parent 1466cbaa0c
commit 58a3148ffb
+6 -1
View File
@@ -351,7 +351,12 @@ Json::Value RPCSession::rpcCall(string const& _methodName, vector<string> const&
}
if (!result.isMember("result") || result["result"].isNull())
BOOST_FAIL("Missing result for JSON-RPC call: " + result.toStyledString());
BOOST_FAIL(
"Missing result for JSON-RPC call: " +
result.toStyledString() +
"\nRequest was " +
request
);
return result["result"];
}