0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd: Further condense ircd::main() exception handlers.

This commit is contained in:
Jason Volk 2018-05-06 15:11:59 -07:00
parent 2183c6bea9
commit 7758a80927

View file

@ -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())
};
}