Also show the inner error

This commit is contained in:
Hocuri
2020-09-16 16:02:25 +02:00
parent b892dafa49
commit 4ed2638594

View File

@@ -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);
}