diff options
| author | ashtneoi <ashtneoi@gmail.com> | 2018-08-13 23:49:21 -0700 |
|---|---|---|
| committer | ashtneoi <ashtneoi@gmail.com> | 2018-08-15 15:14:21 -0700 |
| commit | 6a24abbbc552ac94e8b18cbc1ef38414d192c60f (patch) | |
| tree | ef49e55e8afe0fd6004754d352ef99e494c68db3 | |
| parent | 3c3a7bad499c8606566a0c39f38983a582b8c4c8 (diff) | |
| download | rust-6a24abbbc552ac94e8b18cbc1ef38414d192c60f.tar.gz rust-6a24abbbc552ac94e8b18cbc1ef38414d192c60f.zip | |
Fix compiletest JSON error message
| -rw-r--r-- | src/tools/compiletest/src/json.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/compiletest/src/json.rs b/src/tools/compiletest/src/json.rs index 201a661726e..58220ba992c 100644 --- a/src/tools/compiletest/src/json.rs +++ b/src/tools/compiletest/src/json.rs @@ -82,7 +82,7 @@ pub fn extract_rendered(output: &str, proc_res: &ProcRes) -> String { Err(error) => { proc_res.fatal(Some(&format!( "failed to decode compiler output as json: \ - `{}`\noutput: {}\nline: {}", + `{}`\nline: {}\noutput: {}", error, line, output ))); } @@ -114,7 +114,7 @@ fn parse_line(file_name: &str, line: &str, output: &str, proc_res: &ProcRes) -> Err(error) => { proc_res.fatal(Some(&format!( "failed to decode compiler output as json: \ - `{}`\noutput: {}\nline: {}", + `{}`\nline: {}\noutput: {}", error, line, output ))); } |
