chore(ui): Display the real error of Error::EventCache (#4207)

This patch displays the wrapped error.
This commit is contained in:
Ivan Enderlin
2024-11-04 15:12:18 +01:00
committed by GitHub
parent c08194aa44
commit 5717eb1722

View File

@@ -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.
@@ -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),
}