mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 05:25:55 +00:00
Improve error reporting for account not found.
This commit is contained in:
@@ -932,7 +932,13 @@ Json::Value RPCHandler::doSubmit(Json::Value jvRequest)
|
||||
}
|
||||
|
||||
AccountState::pointer asSrc = mNetOps->getAccountState(mNetOps->getCurrentLedger(), raSrcAddressID);
|
||||
if (!asSrc) return rpcError(rpcSRC_ACT_MALFORMED);
|
||||
if (!asSrc)
|
||||
{
|
||||
cLog(lsDEBUG) << boost::str(boost::format("doSubmit: Failed to find source account in current ledger: %s")
|
||||
% raSrcAddressID.humanAccountID());
|
||||
|
||||
return rpcError(rpcSRC_ACT_NOT_FOUND);
|
||||
}
|
||||
|
||||
if ("Payment" == txJSON["TransactionType"].asString())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user