diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-13 14:03:46 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-12-18 15:15:57 +0000 |
| commit | 213e326cc903521639177a639cfacfb9157340d9 (patch) | |
| tree | 29e3b181659d4c0013aa57d5bcfb9257d2dea444 | |
| parent | b51dc5668714a88d79ddb410d0dcab1559a4bc98 (diff) | |
| download | monzero-core-213e326cc903521639177a639cfacfb9157340d9.tar.gz monzero-core-213e326cc903521639177a639cfacfb9157340d9.tar.xz monzero-core-213e326cc903521639177a639cfacfb9157340d9.zip | |
abstract_tcp_server2: log init_server errors as fatal
so they show up by default
| -rw-r--r-- | contrib/epee/include/net/abstract_tcp_server2.inl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/epee/include/net/abstract_tcp_server2.inl b/contrib/epee/include/net/abstract_tcp_server2.inl index 04d884af2..870f6c2b2 100644 --- a/contrib/epee/include/net/abstract_tcp_server2.inl +++ b/contrib/epee/include/net/abstract_tcp_server2.inl @@ -735,7 +735,17 @@ PRAGMA_WARNING_DISABLE_VS(4355) boost::asio::placeholders::error)); return true; - CATCH_ENTRY_L0("boosted_tcp_server<t_protocol_handler>::init_server", false); + } + catch (const std::exception &e) + { + MFATAL("Error starting server: " << e.what()); + return false; + } + catch (...) + { + MFATAL("Error starting server"); + return false; + } } //----------------------------------------------------------------------------- PUSH_WARNINGS |
