diff options
| author | Fenrir <[email protected]> | 2018-08-19 18:40:13 -0600 |
|---|---|---|
| committer | Fenrir <[email protected]> | 2018-08-19 18:40:13 -0600 |
| commit | 4d7406a743005550e1ebefdcb2f0ae08a588c44e (patch) | |
| tree | 374336a0f2f3d68d12918fe55a6abe27a9514448 | |
| parent | Merge pull request #73 from FenrirWolf/update-2018-08-18 (diff) | |
| download | ctru-rs-4d7406a743005550e1ebefdcb2f0ae08a588c44e.tar.xz ctru-rs-4d7406a743005550e1ebefdcb2f0ae08a588c44e.zip | |
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
| -rw-r--r-- | ctr-std/src/panicking.rs | 3 |
1 files changed, 1 insertions, 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")] { |