From 58a3148ffb6320bc5e4335b90189781f46c5ac83 Mon Sep 17 00:00:00 2001 From: Mathias Baumann Date: Thu, 4 Apr 2019 12:25:12 +0200 Subject: [PATCH] TestFramework: also output failed request --- test/RPCSession.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp index deb64dd80..60de0ffb7 100644 --- a/test/RPCSession.cpp +++ b/test/RPCSession.cpp @@ -351,7 +351,12 @@ Json::Value RPCSession::rpcCall(string const& _methodName, vector 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"]; }