Improve errors

This commit is contained in:
Hocuri
2020-06-06 12:58:47 +02:00
parent 3757e5dca1
commit 8350729cbb
5 changed files with 19 additions and 12 deletions

View File

@@ -806,7 +806,7 @@ pub async fn send_msg_job(context: &Context, msg_id: MsgId) -> Result<Option<Job
if rendered_msg.is_encrypted && !needs_encryption {
msg.param.set_int(Param::GuaranteeE2ee, 1);
msg.save_param_to_disk(context).await;
msg.update_param(context).await;
}
ensure!(!recipients.is_empty(), "no recipients for smtp job set");