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:
parent
2183c6bea9
commit
7758a80927
1 changed files with 2 additions and 9 deletions
11
ircd/ircd.cc
11
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())
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue