room: Print error message when deserialization fails
This commit is contained in:
parent
837444b572
commit
1bf078c585
1 changed files with 2 additions and 2 deletions
|
@ -174,8 +174,8 @@ impl Event {
|
|||
pub fn new(pure_event: SyncRoomEvent, room: &Room) -> Self {
|
||||
SupportedEvent::try_from_event(pure_event.clone(), room)
|
||||
.map(|event| event.upcast())
|
||||
.unwrap_or_else(|_| {
|
||||
warn!("Failed to deserialize event: {:?}", pure_event);
|
||||
.unwrap_or_else(|error| {
|
||||
warn!("Failed to deserialize event: {error}; {pure_event:?}");
|
||||
UnsupportedEvent::new(pure_event, room).upcast()
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue