impl From<anyhow::Error> for Trap (#1753)
* From<anyhow::Error> for Trap * Add TrapReason::Error * wasmtime: Improve Error to Trap conversion * Remove Trap::message
This commit is contained in:
@@ -32,7 +32,7 @@ fn main() -> Result<()> {
|
||||
let trap = run().unwrap_err();
|
||||
|
||||
println!("trap received...");
|
||||
assert!(trap.message().contains("wasm trap: interrupt"));
|
||||
assert!(trap.to_string().contains("wasm trap: interrupt"));
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user