Report a resolver error to the RPC caller.

This commit is contained in:
JoelKatz
2012-01-19 18:44:06 -08:00
parent 82375c30b4
commit 416695f64e

View File

@@ -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";
}