diff options
Diffstat (limited to 'cli/errors.rs')
-rw-r--r-- | cli/errors.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cli/errors.rs b/cli/errors.rs index 4dc22efbf..3ec17e8b2 100644 --- a/cli/errors.rs +++ b/cli/errors.rs @@ -65,11 +65,13 @@ pub fn get_error_class_name(e: &AnyError) -> &'static str { .map(get_resolution_error_class) }) .unwrap_or_else(|| { - eprintln!( - "Error '{}' contains boxed error of unknown type:{}", - e, - e.chain().map(|e| format!("\n {e:?}")).collect::<String>() - ); + if cfg!(debug) { + log::warn!( + "Error '{}' contains boxed error of unknown type:{}", + e, + e.chain().map(|e| format!("\n {e:?}")).collect::<String>() + ); + } "Error" }) } |