Skip to content

Commit

Permalink
chore(ui): Display the real error of Error::EventCache (#4207)
Browse files Browse the repository at this point in the history
This patch displays the wrapped error.
  • Loading branch information
Hywan authored Nov 4, 2024
1 parent c08194a commit 5717eb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/matrix-sdk-ui/src/room_list_service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ impl RoomListService {
#[derive(Debug, Error)]
pub enum Error {
/// Error from [`matrix_sdk::SlidingSync`].
#[error("SlidingSync failed: {0}")]
#[error(transparent)]
SlidingSync(SlidingSyncError),

/// An operation has been requested on an unknown list.
Expand All @@ -446,10 +446,10 @@ pub enum Error {
#[error("A timeline instance already exists for room {0}")]
TimelineAlreadyExists(OwnedRoomId),

#[error("An error occurred while initializing the timeline")]
InitializingTimeline(#[source] timeline::Error),
#[error(transparent)]
InitializingTimeline(#[from] timeline::Error),

#[error("The attached event cache ran into an error")]
#[error(transparent)]
EventCache(#[from] EventCacheError),
}

Expand Down

0 comments on commit 5717eb1

Please sign in to comment.