mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
Merge pull request #1451 from deltachat/better-errors
Always describe the context of the displayed error
This commit is contained in:
@@ -1190,7 +1190,7 @@ fn perform_job_action(context: &Context, mut job: &mut Job, thread: Thread, trie
|
|||||||
Action::ImexImap => match JobImexImap(context, &job) {
|
Action::ImexImap => match JobImexImap(context, &job) {
|
||||||
Ok(()) => Status::Finished(Ok(())),
|
Ok(()) => Status::Finished(Ok(())),
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
error!(context, "{}", err);
|
error!(context, "Import/export failed: {}", err);
|
||||||
Status::Finished(Err(err))
|
Status::Finished(Err(err))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1215,7 +1215,7 @@ pub fn set_msg_failed(context: &Context, msg_id: MsgId, error: Option<impl AsRef
|
|||||||
}
|
}
|
||||||
if let Some(error) = error {
|
if let Some(error) = error {
|
||||||
msg.param.set(Param::Error, error.as_ref());
|
msg.param.set(Param::Error, error.as_ref());
|
||||||
error!(context, "{}", error.as_ref());
|
warn!(context, "Message failed: {}", error.as_ref());
|
||||||
}
|
}
|
||||||
|
|
||||||
if sql::execute(
|
if sql::execute(
|
||||||
|
|||||||
Reference in New Issue
Block a user