mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2025-01-18 20:04:30 +00:00
feat: much better panic message
include the most helpful: the panic error message
This commit is contained in:
parent
68a69992e7
commit
2c9187c29d
1 changed files with 3 additions and 2 deletions
|
@ -13,10 +13,11 @@ pub(crate) fn set_panic_hook(now: std::time::Instant) {
|
|||
let stack_trace = std::backtrace::Backtrace::force_capture();
|
||||
let args = std::env::args_os();
|
||||
let uptime = now.elapsed().as_secs_f32();
|
||||
|
||||
let panic_msg = panic_info.to_string();
|
||||
// Re-format panic info.
|
||||
let panic_info = format!(
|
||||
"{panic_info:#?}
|
||||
"panic error: {panic_msg}\n
|
||||
{panic_info:#?}
|
||||
|
||||
info:
|
||||
OS | {OS_NAME}
|
||||
|
|
Loading…
Reference in a new issue