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

modules/m_control: Don't propagate exception after unloading the module it originated from.

This commit is contained in:
Jason Volk 2020-04-21 03:08:54 -07:00
parent 22df705df3
commit cbcd6c288c

View file

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