aboutsummaryrefslogtreecommitdiffstats
path: root/test/RPCSession.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-04-05 17:59:31 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-04-05 17:59:31 +0800
commit7f232358bb6e40d96b83e732ecdad882a8ed972b (patch)
tree4b335ab0b6906c92ff6f5d3654e0197edc163918 /test/RPCSession.cpp
parentefa0ccaf9e25a257e1ee6b36c0b77b1532131077 (diff)
downloaddexon-solidity-7f232358bb6e40d96b83e732ecdad882a8ed972b.tar
dexon-solidity-7f232358bb6e40d96b83e732ecdad882a8ed972b.tar.gz
dexon-solidity-7f232358bb6e40d96b83e732ecdad882a8ed972b.tar.bz2
dexon-solidity-7f232358bb6e40d96b83e732ecdad882a8ed972b.tar.lz
dexon-solidity-7f232358bb6e40d96b83e732ecdad882a8ed972b.tar.xz
dexon-solidity-7f232358bb6e40d96b83e732ecdad882a8ed972b.tar.zst
dexon-solidity-7f232358bb6e40d96b83e732ecdad882a8ed972b.zip
Show JSON error if jsonParseStrict failed in soltest
Diffstat (limited to 'test/RPCSession.cpp')
-rw-r--r--test/RPCSession.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp
index 03b1341c..c4a38f52 100644
--- a/test/RPCSession.cpp
+++ b/test/RPCSession.cpp
@@ -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"))
{