Merge branch 'createwarnings' into 'master'
fix: correct create event warnings See merge request famedly/conduit!161
This commit is contained in:
commit
72dd95f500
4 changed files with 22 additions and 5 deletions
|
@ -1780,7 +1780,10 @@ impl Rooms {
|
|||
serde_json::from_value::<Raw<CreateEventContent>>(create_event.content.clone())
|
||||
.expect("Raw::from_value always works.")
|
||||
.deserialize()
|
||||
.map_err(|_| Error::bad_database("Invalid PowerLevels event in db."))
|
||||
.map_err(|e| {
|
||||
warn!("Invalid create event: {}", e);
|
||||
Error::bad_database("Invalid create event in db.")
|
||||
})
|
||||
})
|
||||
.transpose()?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue