mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-30 16:45:51 +00:00
Use rpcINVALID_PARAMETERS for invalid ledger_index in ledger command (#279)
Fixes #279
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user