Function console_error_panic_hook::hook[][src]

pub fn hook(info: &PanicInfo<'_>)
Expand description

A panic hook for use with std::panic::set_hook that logs panics into console.error.

On non-wasm targets, prints the panic to stderr.