mirror of
https://github.com/matrix-construct/construct
synced 2025-02-17 01:00:10 +01:00
ircd:Ⓜ️:event::conforms: Log error if evaluation throws.
This commit is contained in:
parent
46e0625daf
commit
2b86779a26
1 changed files with 11 additions and 0 deletions
|
@ -228,6 +228,7 @@ ircd::m::event::conforms::conforms(const event &e,
|
|||
}
|
||||
|
||||
ircd::m::event::conforms::conforms(const event &e)
|
||||
try
|
||||
:report{0}
|
||||
{
|
||||
if(!e.event_id)
|
||||
|
@ -367,6 +368,16 @@ ircd::m::event::conforms::conforms(const event &e)
|
|||
set(DUP_PREV_EVENT);
|
||||
}
|
||||
}
|
||||
catch(const std::exception &_e)
|
||||
{
|
||||
log::error
|
||||
{
|
||||
log, "Unable to complete conformity check :%s",
|
||||
_e.what(),
|
||||
};
|
||||
|
||||
throw;
|
||||
}
|
||||
|
||||
void
|
||||
ircd::m::event::conforms::operator|=(const code &code)
|
||||
|
|
Loading…
Add table
Reference in a new issue