Use rpcINVALID_PARAMETERS for invalid ledger_index in ledger command (#279)

Fixes #279
This commit is contained in:
Francis Mendoza
2022-11-14 12:42:50 -08:00
committed by GitHub
parent b1299792a6
commit c13ac79552

View File

@@ -592,7 +592,7 @@ ledgerInfoFromRequest(Context const& ctx)
}
if (!ledgerSequence)
return Status{Error::rpcLGR_NOT_FOUND, "ledgerIndexMalformed"};
return Status{Error::rpcINVALID_PARAMS, "ledgerIndexMalformed"};
auto lgrInfo =
ctx.backend->fetchLedgerBySequence(*ledgerSequence, ctx.yield);