Formatting.

This commit is contained in:
Mara Bos 2024-06-11 15:46:15 +02:00
parent a345c3daf6
commit a6e23b126b

View File

@ -768,7 +768,9 @@ fn rust_panic_with_hook(
// recursive panics. However if the message is just a string, no user-defined // recursive panics. However if the message is just a string, no user-defined
// code is involved in printing it, so that is risk-free. // code is involved in printing it, so that is risk-free.
let message: &str = payload.as_str().unwrap_or_default(); let message: &str = payload.as_str().unwrap_or_default();
rtprintpanic!("panicked at {location}:\n{message}\nthread panicked while processing panic. aborting.\n"); rtprintpanic!(
"panicked at {location}:\n{message}\nthread panicked while processing panic. aborting.\n"
);
} }
panic_count::MustAbort::AlwaysAbort => { panic_count::MustAbort::AlwaysAbort => {
// Unfortunately, this does not print a backtrace, because creating // Unfortunately, this does not print a backtrace, because creating