mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 16:33:53 +01:00
modules/m_control: Don't propagate exception after unloading the module it originated from.
This commit is contained in:
parent
22df705df3
commit
cbcd6c288c
1 changed files with 11 additions and 2 deletions
|
@ -89,8 +89,17 @@ noexcept try
|
||||||
out.exceptions(out.badbit | out.failbit | out.eofbit);
|
out.exceptions(out.badbit | out.failbit | out.eofbit);
|
||||||
|
|
||||||
out << "<pre>";
|
out << "<pre>";
|
||||||
static const string_view opts{"html"};
|
static const string_view opts{"html"}; try
|
||||||
command(out, body, opts);
|
{
|
||||||
|
command(out, body, opts);
|
||||||
|
}
|
||||||
|
catch(const std::exception &e)
|
||||||
|
{
|
||||||
|
const ctx::exception_handler eh;
|
||||||
|
notice(control_room, e.what());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
out << "</pre>";
|
out << "</pre>";
|
||||||
|
|
||||||
std::string str
|
std::string str
|
||||||
|
|
Loading…
Reference in a new issue