Inconsistent error messages - "lgrNotFound" and "ledgerNotFound" #3654
Labels
API Change
Bug
Good First Issue
Great issue for a new contributor
Potential Bounty Idea
Reviewed
RIPD Export
Exported from legacy JIRA issue tracking
Tech Debt
Non-urgent improvements
Will Need Documentation
An RPC command could return two different error messages meaning the same thing, either ledgerNotFound or lgrNotFound. There are also some unit tests that care about these values. In addition, it seems that the improved ledger_request response switched from "ledgerNotFound" to "lgrNotFound". We should consolidate these to use the same error.
Here are some examples of inconsistency:
https://github.com/ripple/rippled/blob/0b4e34b03b72196510998375fd28622c8b63aaa7/src/ripple/protocol/impl/ErrorCodes.cpp#L83
https://github.com/ripple/rippled/blob/0b4e34b03b72196510998375fd28622c8b63aaa7/src/ripple/rpc/handlers/CanDelete.cpp#L83
Exported from RIPD-1080
The text was updated successfully, but these errors were encountered: