return entryNotFound instead of ledgerNotFound (#149)

This commit is contained in:
Nathan Nichols
2022-05-03 17:24:56 -05:00
committed by GitHub
parent d4dc827ad1
commit cdabdec620

View File

@@ -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);