mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 14:26:30 +03:00
refactor: add error context to Message::load_from_db()
This commit is contained in:
@@ -379,7 +379,7 @@ impl Message {
|
||||
Ok(msg)
|
||||
},
|
||||
)
|
||||
.await?;
|
||||
.await.with_context(|| format!("failed to load message {id} from the database"))?;
|
||||
|
||||
Ok(msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user