If (this block of code panics) { println ... }

I'm pretty ignorant of this topic, but here's a previous thread regarding catch_unwind on wasm.