0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 18:18:56 +02:00

ircd: Fix redundant critical assertive messages in debug builds.

This commit is contained in:
Jason Volk 2018-01-23 20:58:33 -08:00
parent 5ab7dc6421
commit a79af0e606

View file

@ -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
}