main: run ratatui handler on crash

This commit is contained in:
2026-06-22 13:53:42 +02:00
parent 7563ab85ca
commit 85fa485833
+1
View File
@@ -94,6 +94,7 @@ async fn main() {
eyre_hook.install().unwrap();
std::panic::set_hook(Box::new(move |panic_info| {
ratatui::restore();
let msg = format!("{}", panic_hook.panic_report(panic_info));
println!("Panic: {}", msg);
}));