mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Put RPC commands in a try catch.
This commit is contained in:
@@ -2729,7 +2729,13 @@ Json::Value RPCServer::doCommand(const std::string& command, Json::Value& params
|
||||
}
|
||||
else
|
||||
{
|
||||
return (this->*(commandsA[i].dfpFunc))(params);
|
||||
try {
|
||||
return (this->*(commandsA[i].dfpFunc))(params);
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
return RPCError(rpcINTERNAL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user