We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8272ae commit 77549d7Copy full SHA for 77549d7
src/main.rs
@@ -1,5 +1,13 @@
1
use av1an_cli::run;
2
+use std::panic;
3
+use std::process;
4
5
fn main() -> anyhow::Result<()> {
6
+ let orig_hook = panic::take_hook();
7
+ // Catch panics in child threads
8
+ panic::set_hook(Box::new(move |panic_info| {
9
+ orig_hook(panic_info);
10
+ process::exit(1);
11
+ }));
12
run()
13
}
0 commit comments