diff --git a/src/libstd/sys.rs b/src/libstd/sys.rs index 523c5d633cf..ad6f1d23c10 100644 --- a/src/libstd/sys.rs +++ b/src/libstd/sys.rs @@ -203,8 +203,8 @@ pub fn begin_unwind_(msg: *c_char, file: *c_char, line: size_t) -> ! { let msg = str::raw::from_c_str(msg); let file = str::raw::from_c_str(file); - let outmsg = fmt!("task failed: '%s' at line %i of file %s", - msg, line as int, file); + let outmsg = fmt!("task failed at '%s', %s:%i", + msg, file, line as int); // XXX: Logging doesn't work correctly in non-task context because it // invokes the local heap