0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 20:28:52 +02:00

ircd:Ⓜ️:typing: Log exceptions coming through the vm.eval edu handler.

This commit is contained in:
Jason Volk 2020-03-25 17:31:17 -07:00
parent 1e96e34b54
commit 1b49d001b2

View file

@ -85,6 +85,7 @@ _m_typing_eval
void
handle_edu_m_typing(const m::event &event,
m::vm::eval &eval)
try
{
const json::object &content
{
@ -93,6 +94,21 @@ handle_edu_m_typing(const m::event &event,
_handle_edu_m_typing(event, content);
}
catch(const ctx::interrupted &)
{
throw;
}
catch(const std::exception &e)
{
log::derror
{
typing_log, "m.typing from %s :%s",
json::get<"origin"_>(event),
e.what(),
};
throw;
}
void
_handle_edu_m_typing(const m::event &event,