From f8a4d09f7efb618ca3f8b70374e158504cb33cb0 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 24 Jun 2013 23:02:03 -0700 Subject: [PATCH] std: Use the same task failure message as C++ rt --- src/libstd/sys.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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