From 7758a809271b21aea24fd16fe80e921c55b22ab9 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 6 May 2018 15:11:59 -0700 Subject: [PATCH] ircd: Further condense ircd::main() exception handlers. --- ircd/ircd.cc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/ircd/ircd.cc b/ircd/ircd.cc index e0f526aa0..a534ef1e9 100644 --- a/ircd/ircd.cc +++ b/ircd/ircd.cc @@ -235,18 +235,11 @@ noexcept try // executes backwards from this point and shuts down IRCd. ctx::wait(); } -catch(const ctx::terminated &) -{ - log::warning - { - "IRCd main terminated..." - }; -} -catch(const std::exception &e) +catch(...) { log::critical { - "IRCd main exited: %s", e.what() + "IRCd main exited: %s", what(std::current_exception()) }; }