diff --git a/modules/s_fetch.cc b/modules/s_fetch.cc index c896f35db..65fdb184a 100644 --- a/modules/s_fetch.cc +++ b/modules/s_fetch.cc @@ -348,6 +348,7 @@ ircd::m::fetch::for_each(const std::function &closure) void ircd::m::fetch::hook_handler(const event &event, vm::eval &eval) +try { assert(eval.opts); assert(eval.opts->fetch); @@ -539,6 +540,18 @@ ircd::m::fetch::hook_handler(const event &event, json::get<"room_id"_>(*eval.event_) }; } +catch(const std::exception &e) +{ + log::error + { + log, "hook handle %s %s :%s", + loghead(eval), + json::get<"event_id"_>(event), + e.what(), + }; + + throw; +} // // request worker