mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-01 08:25:51 +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");
|
return JSONRPCError(500, "Host required");
|
||||||
if(!extractString(port, params, 1))
|
if(!extractString(port, params, 1))
|
||||||
port="6561";
|
port="6561";
|
||||||
theApp->getConnectionPool().connectTo(host, port);
|
if(!theApp->getConnectionPool().connectTo(host, port))
|
||||||
|
return JSONRPCError(500, "Unable to connect");
|
||||||
return "connecting";
|
return "connecting";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user