refactor: add error context to Message::load_from_db()

This commit is contained in:
link2xt
2023-07-01 19:40:23 +00:00
parent e975568122
commit 5024f48609

View File

@@ -379,7 +379,7 @@ impl Message {
Ok(msg)
},
)
.await?;
.await.with_context(|| format!("failed to load message {id} from the database"))?;
Ok(msg)
}