Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Put backtrace on a new line when reporting panics

Joseph Lyons9cf3481fc72f
diff --git a/crates/zed/src/main.rs b/crates/zed/src/main.rs
index 7b4b4156201..0e4f15261f9 100644
--- a/crates/zed/src/main.rs
+++ b/crates/zed/src/main.rs
@@ -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
),
};