ezpanic

thin friendly wrapper for setting custom panic hook


License
Zlib

Documentation

ezpanic

thin friendly wrapper for setting custom panic hook

usage

add to yout Cargo.toml:

ezpanic = "0.0.0"

example

ezpanic::set(|info: ezpanic::ErrorInfo| {

	if let Some(message) = &info.message {
		eprintln!("{}", message);
	}

	if let Some(location) = &info.location {
		eprintln!("from '{}', line {}", location.file, location.line);
	}

});