0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd:Ⓜ️:room::head: Log and propagate errors during generate.

This commit is contained in:
Jason Volk 2019-12-10 12:12:57 -08:00
parent 8dfbe808d6
commit 0912ca12a0

View file

@ -44,6 +44,7 @@ IRCD_MODULE_EXPORT
ircd::m::room::head::generate::generate(json::stack::array &out,
const m::room::head &head,
const opts &opts)
try
{
if(!head.room)
return;
@ -158,6 +159,17 @@ ircd::m::room::head::generate::generate(json::stack::array &out,
assert(limit >= 0);
}
catch(const std::exception &e)
{
log::error
{
log, "%s prev_events generator :%s",
string_view{head.room},
e.what(),
};
throw;
}
void
ircd::m::append_v1(json::stack::array &out,