diff options
author | chriseth <chris@ethereum.org> | 2018-04-05 21:22:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 21:22:26 +0800 |
commit | 95b0589f7739ebfd0c1c9cde8a07332cba039296 (patch) | |
tree | fed10b03e6fc2304574e2251d7dd91da3e097d7d /test | |
parent | 2d22549f646afd07ed42e255b6c4d22f044410bc (diff) | |
parent | 7f232358bb6e40d96b83e732ecdad882a8ed972b (diff) | |
download | dexon-solidity-95b0589f7739ebfd0c1c9cde8a07332cba039296.tar.gz dexon-solidity-95b0589f7739ebfd0c1c9cde8a07332cba039296.tar.zst dexon-solidity-95b0589f7739ebfd0c1c9cde8a07332cba039296.zip |
Merge pull request #3828 from ethereum/soltest
Show JSON error if jsonParseStrict failed in soltest
Diffstat (limited to 'test')
-rw-r--r-- | test/RPCSession.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp index 7d4b8924..f4eae865 100644 --- a/test/RPCSession.cpp +++ b/test/RPCSession.cpp @@ -339,7 +339,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")) { |