Browse Source

ctr-std: Fix panic message formatting

pull/10/head
Fenrir 8 years ago
parent
commit
2719d9488f
  1. 4
      ctr-std/src/panicking.rs

4
ctr-std/src/panicking.rs

@ -50,10 +50,10 @@ pub fn begin_panic<M: Any + Send + Display>(msg: M, file_line: &(&'static str, u
let msg = Box::new(msg); let msg = Box::new(msg);
let (file, line) = *file_line; let (file, line) = *file_line;
println!("--------------------------------------------------"); print!("--------------------------------------------------");
println!("PANIC in {} at line {}:", file, line); println!("PANIC in {} at line {}:", file, line);
println!(" {}", msg); println!(" {}", msg);
println!("\x1b[29;00H--------------------------------------------------"); print!("\x1b[29;00H--------------------------------------------------");
loop {} loop {}
} }

Loading…
Cancel
Save