Skip to content

Commit 9271b41

Browse files
committed
remove duplicate panic handler
1 parent 9056e5e commit 9271b41

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Diff for: src/main.rs

-7
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ use std::{
7373
io::{self, Stdout},
7474
panic,
7575
path::Path,
76-
process,
7776
time::{Duration, Instant},
7877
};
7978
use ui::style::Theme;
@@ -413,12 +412,6 @@ fn set_panic_handlers() -> Result<()> {
413412

414413
// global threadpool
415414
rayon_core::ThreadPoolBuilder::new()
416-
.panic_handler(|e| {
417-
let backtrace = Backtrace::new();
418-
shutdown_terminal();
419-
log_eprintln!("\nGitUI was close due to an unexpected panic.\nPlease file an issue on https://github.com/gitui-org/gitui/issues with the following info:\n\n{:?}\ntrace:\n{:?}", e, backtrace);
420-
process::abort();
421-
})
422415
.num_threads(4)
423416
.build_global()?;
424417

0 commit comments

Comments
 (0)