Skip to content

Commit f8a4d09

Browse files
committed
std: Use the same task failure message as C++ rt
1 parent 75a913f commit f8a4d09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/sys.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ pub fn begin_unwind_(msg: *c_char, file: *c_char, line: size_t) -> ! {
203203
let msg = str::raw::from_c_str(msg);
204204
let file = str::raw::from_c_str(file);
205205

206-
let outmsg = fmt!("task failed: '%s' at line %i of file %s",
207-
msg, line as int, file);
206+
let outmsg = fmt!("task failed at '%s', %s:%i",
207+
msg, file, line as int);
208208

209209
// XXX: Logging doesn't work correctly in non-task context because it
210210
// invokes the local heap

0 commit comments

Comments
 (0)