mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Properly report unknown command errors so the command line tool
can give help.
This commit is contained in:
@@ -78,6 +78,9 @@ int commandLineRPC(int argc, char *argv[])
|
||||
Json::Value result=reply.get("result", Json::Value());
|
||||
Json::Value error=reply.get("error", Json::Value());
|
||||
|
||||
if(result.isString() && result.asString()=="unknown command")
|
||||
nRet=1;
|
||||
|
||||
if(!error.isNull())
|
||||
{
|
||||
// Error
|
||||
|
||||
Reference in New Issue
Block a user