mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Improved human readable JSON-RPC error messages
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user