mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
ircd::ctx: Assert ctx doesn't finish with uncaught exceptions.
This commit is contained in:
parent
6fbd29b1ed
commit
3bc716e0f5
1 changed files with 4 additions and 2 deletions
|
@ -112,14 +112,16 @@ noexcept try
|
|||
|
||||
// Call the user's function.
|
||||
func();
|
||||
|
||||
assert(!std::uncaught_exceptions());
|
||||
}
|
||||
catch(const ircd::ctx::interrupted &)
|
||||
{
|
||||
|
||||
assert(!std::uncaught_exceptions());
|
||||
}
|
||||
catch(const ircd::ctx::terminated &)
|
||||
{
|
||||
|
||||
assert(!std::uncaught_exceptions());
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue