mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 05:25:55 +00:00
More specific RPC error reporting.
This commit is contained in:
@@ -2553,10 +2553,10 @@ Json::Value RPCHandler::doInternal(Json::Value jvRequest)
|
||||
return RPCInternalHandler::runHandler(jvRequest["internal_command"].asString(), jvRequest["params"]);
|
||||
}
|
||||
|
||||
Json::Value RPCHandler::doCommand(Json::Value& jvRequest, int iRole)
|
||||
Json::Value RPCHandler::doCommand(const Json::Value& jvRequest, int iRole)
|
||||
{
|
||||
if (!jvRequest.isMember("command"))
|
||||
return rpcError(rpcINVALID_PARAMS);
|
||||
return rpcError(rpcCOMMAND_MISSING);
|
||||
|
||||
std::string strCommand = jvRequest["command"].asString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user