1
0
mirror of https://github.com/danog/ytop.git synced 2024-11-26 20:15:03 +01:00
This commit is contained in:
Caleb Bassi 2020-02-15 16:10:37 -08:00
parent 805548dc07
commit 96f1434b37

View File

@ -109,8 +109,8 @@ fn setup_logfile(logfile_path: &Path) {
.unwrap(); .unwrap();
} }
// We need to catch panics since we need to close the terminal before logging any error messages to // We need to catch panics since we need to close the UI and cleanup the terminal before logging any
// the screen. // error messages to the screen.
fn setup_panic_hook() { fn setup_panic_hook() {
panic::set_hook(Box::new(|panic_info| { panic::set_hook(Box::new(|panic_info| {
cleanup_terminal(); cleanup_terminal();