mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 01:30:12 +01:00
ircd: Fix redundant critical assertive messages in debug builds.
This commit is contained in:
parent
5ab7dc6421
commit
a79af0e606
1 changed files with 1 additions and 2 deletions
|
@ -102,11 +102,10 @@ void
|
|||
ircd::assertion(const std::exception &e)
|
||||
noexcept(RB_DEBUG)
|
||||
{
|
||||
log::critical("IRCd Assertion %s", e.what());
|
||||
|
||||
#ifdef RB_DEBUG
|
||||
terminate(e);
|
||||
#else
|
||||
log::critical("IRCd Assertion %s", e.what());
|
||||
throw e;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue