From a9baec1dad9bd4e168630940f9b07a2eb0a77d28 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski Date: Tue, 10 Dec 2024 14:39:00 +0000 Subject: [PATCH] Report the root cause of non-fatal errors. --- src/callbacks.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/callbacks.rs b/src/callbacks.rs index bbccc904..6282db6c 100644 --- a/src/callbacks.rs +++ b/src/callbacks.rs @@ -110,7 +110,8 @@ impl<'a> crate::data_generation::ProgressCallbacks<'a> for Callbacks<'a> { let _ = self.config.log_info(|config| { config.shell_warn(format!( "encountered non-fatal error while working on crate \ - {crate_name} v{version} ({kind}): {error}", + {crate_name} v{version} ({kind}): {error} (root cause: {})", + error.root_cause() ))?; Ok(()) });