main: run ratatui handler on crash
This commit is contained in:
@@ -94,6 +94,7 @@ async fn main() {
|
|||||||
eyre_hook.install().unwrap();
|
eyre_hook.install().unwrap();
|
||||||
|
|
||||||
std::panic::set_hook(Box::new(move |panic_info| {
|
std::panic::set_hook(Box::new(move |panic_info| {
|
||||||
|
ratatui::restore();
|
||||||
let msg = format!("{}", panic_hook.panic_report(panic_info));
|
let msg = format!("{}", panic_hook.panic_report(panic_info));
|
||||||
println!("Panic: {}", msg);
|
println!("Panic: {}", msg);
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user