Skip to content
Snippets Groups Projects

Resolve "Prettify startup errors reporting"

Files
2
+ 5
0
@@ -123,6 +123,11 @@ pub fn main(args: args::Run) -> ! {
// because it's stored in the global variable which we can
// access from anywhere. But we still pass it explicitly just
// to make sure it's initialized at this early point.
std::panic::set_hook(Box::new(|info| {
println!("Custom panic hook: {}", info);
std::process::exit(1);
}));
entrypoint.exec(config, to_parent)
})
}
Loading