diff --git a/lib/runtime-core/src/error.rs b/lib/runtime-core/src/error.rs index 94abce06d..266bd444e 100644 --- a/lib/runtime-core/src/error.rs +++ b/lib/runtime-core/src/error.rs @@ -210,7 +210,7 @@ impl std::fmt::Display for RuntimeError { } else if let Some(s) = data.downcast_ref::<&str>() { write!(f, "\"{}\"", s) } else if let Some(exc_code) = data.downcast_ref::() { - write!(f, "\"{:?}\"", exc_code) + write!(f, "Caught exception of type \"{:?}\".", exc_code) } else { write!(f, "unknown error") }