Skip to content
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.

Commit

Permalink
Write entire panic message to stderr at once
Browse files Browse the repository at this point in the history
This change has also been pushed to ctr-std-horizon, so it will carry over on the next rebase
  • Loading branch information
FenrirWolf committed Aug 20, 2018
1 parent 15cb3c1 commit 4d7406a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ctr-std/src/panicking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
{
Expand Down

0 comments on commit 4d7406a

Please sign in to comment.