diff --git a/src/main.rs b/src/main.rs index 42ca808..bc7b17f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,6 +30,13 @@ fn init_tracing() { fn init_tracing() {} fn main() -> glib::ExitCode { + // abort on any panic + let orig_hook = std::panic::take_hook(); + std::panic::set_hook(Box::new(move |panic_info| { + orig_hook(panic_info); + std::process::exit(1); + })); + gio::resources_register_include!("audrey.gresource").expect("could not register resources"); init_tracing();