mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 23:10:54 +01:00
modules/client/rooms/state: Log an error when a state event fetch fails during sync.
This commit is contained in:
parent
17abecff3b
commit
54f7ddb6bd
1 changed files with 10 additions and 0 deletions
|
@ -171,7 +171,17 @@ ircd::m::sync::room_state_polylog_events(data &data)
|
|||
|
||||
//assert(event.valid);
|
||||
if(unlikely(!event.valid))
|
||||
{
|
||||
assert(data.room);
|
||||
log::error
|
||||
{
|
||||
log, "Failed to fetch event idx:%lu in room %s state.",
|
||||
event_idx,
|
||||
string_view{data.room->room_id}
|
||||
};
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
const std::lock_guard lock{mutex};
|
||||
room_state_append(data, array, event, event_idx);
|
||||
|
|
Loading…
Reference in a new issue