diff options
author | extrawurst <mail@rusticorn.com> | 2024-02-18 14:01:44 +0100 |
---|---|---|
committer | extrawurst <mail@rusticorn.com> | 2024-02-18 14:01:44 +0100 |
commit | f1da79b4b24531bcf1caefe45de87d1824ba5876 (patch) | |
tree | f32676f8082ad6d630090532dc997a3524380fb4 /src | |
parent | f4a7034a9a98a0c2f3592913689a303f823c8118 (diff) |
fix panics not shown on cli (closes #2049)
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 0fb61391..6c5f2352 100644 --- a/src/main.rs +++ b/src/main.rs @@ -386,16 +386,16 @@ fn set_panic_handlers() -> Result<()> { // regular panic handler panic::set_hook(Box::new(|e| { let backtrace = Backtrace::new(); - log_eprintln!("panic: {:?}\ntrace:\n{:?}", e, backtrace); shutdown_terminal(); + log_eprintln!("\nGitUI was close due to an unexpected panic.\nPlease file an issue on https://github.com/extrawurst/gitui/issues with the following info:\n\n{:?}\ntrace:\n{:?}", e, backtrace); })); // global threadpool rayon_core::ThreadPoolBuilder::new() .panic_handler(|e| { let backtrace = Backtrace::new(); - log_eprintln!("panic: {:?}\ntrace:\n{:?}", e, backtrace); shutdown_terminal(); + log_eprintln!("\nGitUI was close due to an unexpected panic.\nPlease file an issue on https://github.com/extrawurst/gitui/issues with the following info:\n\n{:?}\ntrace:\n{:?}", e, backtrace); process::abort(); }) .num_threads(4) |