Skip to content

Commit 6a24abb

Browse files
committed
Fix compiletest JSON error message
1 parent 3c3a7ba commit 6a24abb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/compiletest/src/json.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub fn extract_rendered(output: &str, proc_res: &ProcRes) -> String {
8282
Err(error) => {
8383
proc_res.fatal(Some(&format!(
8484
"failed to decode compiler output as json: \
85-
`{}`\noutput: {}\nline: {}",
85+
`{}`\nline: {}\noutput: {}",
8686
error, line, output
8787
)));
8888
}
@@ -114,7 +114,7 @@ fn parse_line(file_name: &str, line: &str, output: &str, proc_res: &ProcRes) ->
114114
Err(error) => {
115115
proc_res.fatal(Some(&format!(
116116
"failed to decode compiler output as json: \
117-
`{}`\noutput: {}\nline: {}",
117+
`{}`\nline: {}\noutput: {}",
118118
error, line, output
119119
)));
120120
}

0 commit comments

Comments
 (0)