adjust message on non-unwinding panic
This commit is contained in:
parent
1d12c3cea3
commit
b804c0d5a5
@ -699,7 +699,11 @@ fn rust_panic_with_hook(
|
||||
// have limited options. Currently our preference is to
|
||||
// just abort. In the future we may consider resuming
|
||||
// unwinding or otherwise exiting the thread cleanly.
|
||||
rtprintpanic!("thread panicked while panicking. aborting.\n");
|
||||
if !can_unwind {
|
||||
rtprintpanic!("thread caused non-unwinding panic. aborting.\n");
|
||||
} else {
|
||||
rtprintpanic!("thread panicked while panicking. aborting.\n");
|
||||
}
|
||||
crate::sys::abort_internal();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user