mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 15:05:53 +00:00
Report a resolver error to the RPC caller.
This commit is contained in:
@@ -321,7 +321,8 @@ Json::Value RPCServer::doConnect(Json::Value& params)
|
||||
return JSONRPCError(500, "Host required");
|
||||
if(!extractString(port, params, 1))
|
||||
port="6561";
|
||||
theApp->getConnectionPool().connectTo(host, port);
|
||||
if(!theApp->getConnectionPool().connectTo(host, port))
|
||||
return JSONRPCError(500, "Unable to connect");
|
||||
return "connecting";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user