Browse Source

Don't output an extra newline when panicking

svcOutputDebugString seems to append newlines on its own after each write to stderr
pull/10/head
Fenrir 7 years ago
parent
commit
6d4cb6df3d
  1. 2
      ctr-std/src/panicking.rs

2
ctr-std/src/panicking.rs

@ -395,7 +395,7 @@ fn default_hook(info: &PanicInfo) {
let mut err = Stderr::new().ok(); let mut err = Stderr::new().ok();
let write = |err: &mut ::io::Write| { let write = |err: &mut ::io::Write| {
let _ = writeln!(err, "{}", error_text); let _ = write!(err, "{}", error_text);
#[cfg(feature = "backtrace")] #[cfg(feature = "backtrace")]
{ {

Loading…
Cancel
Save