mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-22 17:32:43 +00:00
Update error for auth_event_ids
This commit is contained in:
1 parent
f5f7e7c729
commit
71151640b2
1 file changed
+4
-3
@@ -71,9 +71,10 @@ impl EventFormatVMSC4242 {
|
||||
if event.fields.common_fields.type_state_key_tuple() != Some((M_ROOM_CREATE, ""))
|
||||
&& auth_event_ids.is_empty()
|
||||
{
|
||||
return Err(PyRuntimeError::new_err(
|
||||
"auth_event_ids is unexpectedly empty for a non-create event",
|
||||
));
|
||||
return Err(PyRuntimeError::new_err(format!(
|
||||
"auth_event_ids has not been calculated: {}",
|
||||
event.event_id
|
||||
)));
|
||||
}
|
||||
|
||||
Ok(auth_event_ids)
|
||||
|
||||
Reference in new issue
Block a user