feat: add more context to send_msg errors

This commit is contained in:
link2xt
2024-10-19 18:44:37 +00:00
parent 85d7c1f942
commit 5e58bf7575
3 changed files with 16 additions and 12 deletions

View File

@@ -2941,7 +2941,10 @@ async fn prepare_send_msg(
);
message::update_msg_state(context, msg.id, MessageState::OutPending).await?;
}
create_send_msg_jobs(context, msg).await
let row_ids = create_send_msg_jobs(context, msg)
.await
.context("Failed to create send jobs")?;
Ok(row_ids)
}
/// Constructs jobs for sending a message and inserts them into the appropriate table.