set_panic_hook

Function set_panic_hook 

Source
pub fn set_panic_hook()
Expand description

Panic hook lets us get better error messages if our Rust code ever panics.

For more details see https://github.com/rustwasm/console_error_panic_hook#readme