mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 19:45:53 +00:00
Show a more specific error when entering an invalid command on the CLI RPC.
This commit is contained in:
@@ -535,7 +535,7 @@ Json::Value RPCParser::parseCommand(std::string strMethod, Json::Value jvParams)
|
||||
|
||||
if (i < 0)
|
||||
{
|
||||
return rpcError(rpcBAD_SYNTAX);
|
||||
return rpcError(rpcUNKNOWN_COMMAND);
|
||||
}
|
||||
else if ((commandsA[i].iMinParams >= 0 && jvParams.size() < commandsA[i].iMinParams)
|
||||
|| (commandsA[i].iMaxParams >= 0 && jvParams.size() > commandsA[i].iMaxParams))
|
||||
|
||||
Reference in New Issue
Block a user