mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-17 10:15:51 +00:00
return entryNotFound instead of ledgerNotFound (#149)
This commit is contained in:
@@ -349,7 +349,7 @@ doLedgerEntry(Context const& context)
|
||||
auto end = std::chrono::system_clock::now();
|
||||
|
||||
if (!dbResponse or dbResponse->size() == 0)
|
||||
return Status{Error::rpcLGR_NOT_FOUND};
|
||||
return Status{Error::rpcOBJECT_NOT_FOUND, "entryNotFound"};
|
||||
|
||||
response["index"] = ripple::strHex(key);
|
||||
response["ledger_hash"] = ripple::strHex(lgrInfo.hash);
|
||||
|
||||
Reference in New Issue
Block a user