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