mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-18 09:00:51 +00:00
Improve error message on exception.
This commit is contained in:
parent
a45cbd6bbc
commit
6dfd5916c2
@ -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::<ExceptionCode>() {
|
||||
write!(f, "\"{:?}\"", exc_code)
|
||||
write!(f, "Caught exception of type \"{:?}\".", exc_code)
|
||||
} else {
|
||||
write!(f, "unknown error")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user