mirror of
https://github.com/chatmail/core.git
synced 2026-05-09 01:46:30 +03:00
Also show the inner error
This commit is contained in:
@@ -95,7 +95,8 @@ pub async fn imex(
|
|||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
cleanup_aborted_imex(context, what).await;
|
cleanup_aborted_imex(context, what).await;
|
||||||
error!(context, "{}", err);
|
// We are using Anyhow's .context() and to show the inner error, too, we need the {:#}:
|
||||||
|
error!(context, "{:#}", err);
|
||||||
context.emit_event(EventType::ImexProgress(0));
|
context.emit_event(EventType::ImexProgress(0));
|
||||||
bail!("IMEX FAILED to complete: {}", err);
|
bail!("IMEX FAILED to complete: {}", err);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user