未验证 提交 ba6c5776 编写于 作者: D Daniel Larimer 提交者: GitHub

Merge pull request #3489 from EOSIO/keosd-exit-on-fail

keosd/nodeos process exits if failed to bind to http port #3314
......@@ -303,11 +303,14 @@ namespace eosio {
my->server.listen(*my->listen_endpoint);
my->server.start_accept();
} catch ( const fc::exception& e ){
elog( "http: ${e}", ("e",e.to_detail_string()));
elog( "http service failed to start: ${e}", ("e",e.to_detail_string()));
throw;
} catch ( const std::exception& e ){
elog( "http: ${e}", ("e",e.what()));
elog( "http service failed to start: ${e}", ("e",e.what()));
throw;
} catch (...) {
elog("error thrown from http io service");
throw;
}
}
......@@ -322,11 +325,14 @@ namespace eosio {
my->https_server.listen(*my->https_listen_endpoint);
my->https_server.start_accept();
} catch ( const fc::exception& e ){
elog( "https: ${e}", ("e",e.to_detail_string()));
elog( "https service failed to start: ${e}", ("e",e.to_detail_string()));
throw;
} catch ( const std::exception& e ){
elog( "https: ${e}", ("e",e.what()));
elog( "https service failed to start: ${e}", ("e",e.what()));
throw;
} catch (...) {
elog("error thrown from https io service");
throw;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册