Match format to rippled error code (#461)

Fixes #263
This commit is contained in:
Francis Mendoza
2023-01-04 12:53:37 -08:00
committed by GitHub
parent 2f65a26dc7
commit 0c2ca1737e

View File

@@ -1597,9 +1597,7 @@ traverseTransactions(
{
if (context.range.maxSequence < *max ||
context.range.minSequence > *max)
return Status{
RippledError::rpcLGR_IDX_MALFORMED,
"ledgerSeqMaxOutOfRange"};
return Status{RippledError::rpcLGR_IDX_MALFORMED};
else
maxIndex = static_cast<uint32_t>(*max);
}