feat: add context to message loading failures

This commit is contained in:
link2xt
2026-02-20 20:48:54 +00:00
parent e95dca87bd
commit f055f6226c
2 changed files with 11 additions and 3 deletions

View File

@@ -389,7 +389,9 @@ impl Context {
}
if let Some(ref href) = status_update_item.href {
let mut notify_msg = Message::load_from_db(self, notify_msg_id).await?;
let mut notify_msg = Message::load_from_db(self, notify_msg_id)
.await
.context("Failed to load just created notification message")?;
notify_msg.param.set(Param::Arg, href);
notify_msg.update_param(self).await?;
}