mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 19:02:07 +00:00
Put backtrace on a new line when reporting panics
This commit is contained in:
parent
dad403f483
commit
9cf3481fc7
1 changed files with 2 additions and 2 deletions
|
@ -336,7 +336,7 @@ fn init_panic_hook(app_version: String) {
|
||||||
let message = match info.location() {
|
let message = match info.location() {
|
||||||
Some(location) => {
|
Some(location) => {
|
||||||
format!(
|
format!(
|
||||||
"thread '{}' panicked at '{}': {}:{}{:?}",
|
"thread '{}' panicked at '{}': {}:{}\n{:?}",
|
||||||
thread,
|
thread,
|
||||||
payload,
|
payload,
|
||||||
location.file(),
|
location.file(),
|
||||||
|
@ -345,7 +345,7 @@ fn init_panic_hook(app_version: String) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
None => format!(
|
None => format!(
|
||||||
"thread '{}' panicked at '{}'{:?}",
|
"thread '{}' panicked at '{}'\n{:?}",
|
||||||
thread, payload, backtrace
|
thread, payload, backtrace
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue