Always describe the context of the displayed error

This commit is contained in:
Alexander Krotov
2020-05-04 16:35:42 +03:00
parent bb59cf94e9
commit 3035c8af30
2 changed files with 2 additions and 2 deletions

View File

@@ -1190,7 +1190,7 @@ fn perform_job_action(context: &Context, mut job: &mut Job, thread: Thread, trie
Action::ImexImap => match JobImexImap(context, &job) {
Ok(()) => Status::Finished(Ok(())),
Err(err) => {
error!(context, "{}", err);
error!(context, "Import/export failed: {}", err);
Status::Finished(Err(err))
}
},

View File

@@ -1215,7 +1215,7 @@ pub fn set_msg_failed(context: &Context, msg_id: MsgId, error: Option<impl AsRef
}
if let Some(error) = error {
msg.param.set(Param::Error, error.as_ref());
error!(context, "{}", error.as_ref());
error!(context, "Message failed: {}", error.as_ref());
}
if sql::execute(