summaryrefslogtreecommitdiff
path: root/cli/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/errors.rs')
-rw-r--r--cli/errors.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/cli/errors.rs b/cli/errors.rs
index 29fd428c8..b631f1b71 100644
--- a/cli/errors.rs
+++ b/cli/errors.rs
@@ -32,6 +32,12 @@ pub(crate) fn get_error_class_name(e: &AnyError) -> &'static str {
.map(get_diagnostic_class)
})
.unwrap_or_else(|| {
- panic!("Error '{}' contains boxed error of unknown type", e);
+ panic!(
+ "Error '{}' contains boxed error of unknown type:{}",
+ e,
+ e.chain()
+ .map(|e| format!("\n {:?}", e))
+ .collect::<String>()
+ );
})
}