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