better error reporting

This commit is contained in:
Robin Appelman 2024-10-30 19:41:28 +01:00
commit 87f644af37

View file

@ -46,7 +46,8 @@ async fn main() -> Result<()> {
.with_context(|| format!("Timeout while downloading config for {device}")) .with_context(|| format!("Timeout while downloading config for {device}"))
.and_then(|res| res); .and_then(|res| res);
if let Err(e) = result { if let Err(e) = result {
error!(device = device, error = %e, "Failed to download config for {device}"); let error = format!("{e:#}");
error!(device, error, "Failed to download config for {device}");
} }
} }
} }