From 4d7406a743005550e1ebefdcb2f0ae08a588c44e Mon Sep 17 00:00:00 2001 From: Fenrir Date: Sun, 19 Aug 2018 18:40:13 -0600 Subject: [PATCH] Write entire panic message to stderr at once This change has also been pushed to ctr-std-horizon, so it will carry over on the next rebase --- ctr-std/src/panicking.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ctr-std/src/panicking.rs b/ctr-std/src/panicking.rs index 4cdde2b..c612604 100644 --- a/ctr-std/src/panicking.rs +++ b/ctr-std/src/panicking.rs @@ -223,8 +223,7 @@ fn default_hook(info: &PanicInfo) { } let write = |err: &mut dyn (::io::Write)| { - let _ = writeln!(err, "thread '{}' panicked at '{}', {}", - name, msg, location); + let _ = write!(err, "{}", error_text); #[cfg(feature = "backtrace")] {