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