From 62fcba7176130ba7e13cc1f771f5ac3d2857f0e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20K=C3=B6sters?= Date: Fri, 30 Jun 2023 22:50:45 +0200 Subject: [PATCH] show error when state res fails --- src/service/rooms/event_handler/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/service/rooms/event_handler/mod.rs b/src/service/rooms/event_handler/mod.rs index 88d54298..d39ef920 100644 --- a/src/service/rooms/event_handler/mod.rs +++ b/src/service/rooms/event_handler/mod.rs @@ -624,7 +624,7 @@ impl Service { .collect::>()?, ), Err(e) => { - warn!("State resolution on prev events failed, either an event could not be found or deserialization: {}", e); + warn!("State resolution on prev events failed, either an event could not be found or deserialization failed: {}", e); None } } @@ -967,8 +967,9 @@ impl Service { res.ok().flatten() }) { Ok(new_state) => new_state, - Err(_) => { - return Err(Error::bad_database("State resolution failed, either an event could not be found or deserialization")); + Err(e) => { + warn!("State resolution on prev events failed, either an event could not be found or deserialization failed: {}", e); + return Err(Error::bad_database("State resolution failed, either an event could not be found or deserialization failed")); } };