Put backtrace on a new line when reporting panics

This commit is contained in:
Joseph Lyons
2023-04-07 12:12:18 -04:00
parent dad403f483
commit 9cf3481fc7
+2 -2
View File
@@ -336,7 +336,7 @@ fn init_panic_hook(app_version: String) {
let message = match info.location() {
Some(location) => {
format!(
"thread '{}' panicked at '{}': {}:{}{:?}",
"thread '{}' panicked at '{}': {}:{}\n{:?}",
thread,
payload,
location.file(),
@@ -345,7 +345,7 @@ fn init_panic_hook(app_version: String) {
)
}
None => format!(
"thread '{}' panicked at '{}'{:?}",
"thread '{}' panicked at '{}'\n{:?}",
thread, payload, backtrace
),
};