mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23: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 << "<pre>";
|
||||
static const string_view opts{"html"};
|
||||
command(out, body, opts);
|
||||
static const string_view opts{"html"}; try
|
||||
{
|
||||
command(out, body, opts);
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
const ctx::exception_handler eh;
|
||||
notice(control_room, e.what());
|
||||
return;
|
||||
}
|
||||
|
||||
out << "</pre>";
|
||||
|
||||
std::string str
|
||||
|
|
Loading…
Reference in a new issue