Catch exception when initializing RPC and exit program instead of creating core.
@@ -116,7 +116,12 @@ PingProxy::Main()
if (debugging) {
printf("connecting to '%s'\n", spec);
}
+ try {
initRPC(spec);
+ } catch (std::exception& ex) {
+ LOG(error, "Got exception while initializing RPC: '%s'", ex.what());
+ return 1;
+ }
FRT_RPCRequest *req = _server->supervisor().AllocRPCRequest();
