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:
parent
8dfbe808d6
commit
0912ca12a0
1 changed files with 12 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue