mirror of
https://github.com/XRPLF/clio.git
synced 2026-06-07 10:46:51 +00:00
chore: Remove explicit accountNotFound message (#2978)
I searched rippled code, and there is no `accountNotFound` anywhere. So, we should probably stick to the default, it looks reasonable
This commit is contained in:
@@ -107,7 +107,7 @@ AccountChannelsHandler::process(
|
||||
);
|
||||
|
||||
if (!accountLedgerObject)
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND, "accountNotFound"}};
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND}};
|
||||
|
||||
auto const destAccountID = input.destinationAccount
|
||||
? accountFromStringStrict(input.destinationAccount.value())
|
||||
|
||||
@@ -65,7 +65,7 @@ AccountCurrenciesHandler::process(
|
||||
ripple::keylet::account(*accountID).key, lgrInfo.seq, ctx.yield
|
||||
);
|
||||
if (!accountLedgerObject)
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND, "accountNotFound"}};
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND}};
|
||||
|
||||
Output response;
|
||||
auto const addToResponse = [&](ripple::SLE const sle) {
|
||||
|
||||
@@ -156,7 +156,7 @@ AccountLinesHandler::process(AccountLinesHandler::Input const& input, Context co
|
||||
);
|
||||
|
||||
if (not accountLedgerObject)
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND, "accountNotFound"}};
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND}};
|
||||
|
||||
auto const peerAccountID =
|
||||
input.peer ? accountFromStringStrict(*(input.peer)) : std::optional<ripple::AccountID>{};
|
||||
|
||||
@@ -68,7 +68,7 @@ AccountNFTsHandler::process(AccountNFTsHandler::Input const& input, Context cons
|
||||
);
|
||||
|
||||
if (!accountLedgerObject)
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND, "accountNotFound"}};
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND}};
|
||||
|
||||
auto response = Output{};
|
||||
response.account = input.account;
|
||||
|
||||
@@ -69,7 +69,7 @@ AccountObjectsHandler::process(AccountObjectsHandler::Input const& input, Contex
|
||||
);
|
||||
|
||||
if (!accountLedgerObject)
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND, "accountNotFound"}};
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND}};
|
||||
|
||||
auto typeFilter = std::optional<std::vector<ripple::LedgerEntryType>>{};
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ AccountOffersHandler::process(AccountOffersHandler::Input const& input, Context
|
||||
);
|
||||
|
||||
if (!accountLedgerObject)
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND, "accountNotFound"}};
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND}};
|
||||
|
||||
Output response;
|
||||
response.account = ripple::to_string(*accountID);
|
||||
|
||||
@@ -80,7 +80,7 @@ GatewayBalancesHandler::process(
|
||||
);
|
||||
|
||||
if (!accountLedgerObject)
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND, "accountNotFound"}};
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND}};
|
||||
|
||||
auto output = GatewayBalancesHandler::Output{};
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ NFTsByIssuerHandler::process(NFTsByIssuerHandler::Input const& input, Context co
|
||||
);
|
||||
|
||||
if (!accountLedgerObject)
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND, "accountNotFound"}};
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND}};
|
||||
|
||||
std::optional<uint256> cursor;
|
||||
if (input.marker)
|
||||
|
||||
@@ -74,7 +74,7 @@ NoRippleCheckHandler::process(NoRippleCheckHandler::Input const& input, Context
|
||||
auto const accountObj = sharedPtrBackend_->fetchLedgerObject(keylet, lgrInfo.seq, ctx.yield);
|
||||
|
||||
if (!accountObj)
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND, "accountNotFound"}};
|
||||
return Error{Status{RippledError::rpcACT_NOT_FOUND}};
|
||||
|
||||
auto it = ripple::SerialIter{accountObj->data(), accountObj->size()};
|
||||
auto sle = ripple::SLE{it, keylet};
|
||||
|
||||
Reference in New Issue
Block a user