0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd::ctx: Assert ctx doesn't finish with uncaught exceptions.

This commit is contained in:
Jason Volk 2019-03-26 14:50:15 -07:00
parent 6fbd29b1ed
commit 3bc716e0f5

View file

@ -112,14 +112,16 @@ noexcept try
// Call the user's function. // Call the user's function.
func(); func();
assert(!std::uncaught_exceptions());
} }
catch(const ircd::ctx::interrupted &) catch(const ircd::ctx::interrupted &)
{ {
assert(!std::uncaught_exceptions());
} }
catch(const ircd::ctx::terminated &) catch(const ircd::ctx::terminated &)
{ {
assert(!std::uncaught_exceptions());
} }
catch(const std::exception &e) catch(const std::exception &e)
{ {