refactor(ffi): When mapping ffi::StateEventContent, log any unsupported event types
The same was done for unsupported message-like event contents.
This commit is contained in:
committed by
Jorge Martin Espinosa
parent
4626c4caaf
commit
ed245a0cf0
@@ -135,7 +135,7 @@ impl TryFrom<AnySyncStateEvent> for StateEventContent {
|
||||
}
|
||||
AnySyncStateEvent::SpaceChild(_) => StateEventContent::SpaceChild,
|
||||
AnySyncStateEvent::SpaceParent(_) => StateEventContent::SpaceParent,
|
||||
_ => bail!("Unsupported state event"),
|
||||
_ => bail!("Unsupported state event: {:?}", value.event_type()),
|
||||
};
|
||||
Ok(event)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user