mirror of
https://github.com/danog/ytop.git
synced 2024-11-26 20:15:03 +01:00
comment
This commit is contained in:
parent
805548dc07
commit
96f1434b37
@ -109,8 +109,8 @@ fn setup_logfile(logfile_path: &Path) {
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
// We need to catch panics since we need to close the terminal before logging any error messages to
|
||||
// the screen.
|
||||
// We need to catch panics since we need to close the UI and cleanup the terminal before logging any
|
||||
// error messages to the screen.
|
||||
fn setup_panic_hook() {
|
||||
panic::set_hook(Box::new(|panic_info| {
|
||||
cleanup_terminal();
|
||||
|
Loading…
Reference in New Issue
Block a user