(&self, msg: &str)
| 142 | |
| 143 | impl ErrorExt for wasmtime::Error { |
| 144 | fn assert_contains(&self, msg: &str) { |
| 145 | if self.chain().any(|e| e.to_string().contains(msg)) { |
| 146 | return; |
| 147 | } |
| 148 | |
| 149 | panic!("failed to find:\n{msg}\n\nwithin error message:\n{self:?}") |
| 150 | } |
| 151 | } |