Skip to content

Commit ed245a0

Browse files
committed
refactor(ffi): When mapping ffi::StateEventContent, log any unsupported event types
The same was done for unsupported message-like event contents.
1 parent 4626c4c commit ed245a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bindings/matrix-sdk-ffi/src/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ impl TryFrom<AnySyncStateEvent> for StateEventContent {
135135
}
136136
AnySyncStateEvent::SpaceChild(_) => StateEventContent::SpaceChild,
137137
AnySyncStateEvent::SpaceParent(_) => StateEventContent::SpaceParent,
138-
_ => bail!("Unsupported state event"),
138+
_ => bail!("Unsupported state event: {:?}", value.event_type()),
139139
};
140140
Ok(event)
141141
}

0 commit comments

Comments
 (0)