Show some inner errors (do not hide them with .context) (#1916)

This commit is contained in:
Hocuri
2020-09-26 22:48:47 +02:00
committed by GitHub
parent 9121e30600
commit 02baf4b1f0
2 changed files with 6 additions and 3 deletions

View File

@@ -125,7 +125,8 @@ impl Context {
Some(
self.stock_string_repl_str(
StockMessage::ConfigurationFailed,
err.to_string(),
// We are using Anyhow's .context() and to show the inner error, too, we need the {:#}:
format!("{:#}", err),
)
.await
)