mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-10 17:03:20 -04:00
Correct use to propagate error with additional text
This commit is contained in:
committed by
Ivan Enderlin
parent
940325574b
commit
07656c2e26
@@ -634,7 +634,7 @@ impl Timeline {
|
||||
self.inner
|
||||
.fetch_details_for_event(event_id)
|
||||
.await
|
||||
.map_err(|_| ClientError::from_str("Fetching event details".to_owned(), None))?;
|
||||
.map_err(|e| ClientError::from_str(e, Some("Fetching event details".to_owned())))?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user