mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 02:16:29 +03:00
Also show the inner error
This commit is contained in:
@@ -95,7 +95,8 @@ pub async fn imex(
|
||||
}
|
||||
Err(err) => {
|
||||
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));
|
||||
bail!("IMEX FAILED to complete: {}", err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user