mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-19 18:41:56 +03:00
Merge pull request #2364 from zed-industries/put-backtrace-on-a-newline-when-reporting-panics
Put backtrace on a new line when reporting panics
This commit is contained in:
commit
f450692e77
@ -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
|
||||
),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user