Improved human readable JSON-RPC error messages

This commit is contained in:
Vinnie Falco
2013-12-12 21:17:54 -05:00
parent ef7810bc95
commit 9d07ddeae1
22 changed files with 1682 additions and 839 deletions

View File

@@ -344,9 +344,11 @@ public:
pass ();
}
std::unique_ptr<STObject> new_obj = STObject::parseJson (j.getJson (0), sfGeneric);
STParsedJSON parsed ("test", j.getJson (0));
std::unique_ptr <STObject> new_obj (std::move (parsed.object));
if (new_obj.get () == NULL) fail ("Unable to build object from json");
if (new_obj.get () == nullptr)
fail ("Unable to build object from json");
if (STObject (j) != *new_obj)
{
@@ -361,4 +363,4 @@ public:
}
};
static SerializedTransactionTests serializedTransactionTests;
static SerializedTransactionTests serializedTransactionTests;