Skip to content

Commit d25688e

Browse files
author
Jonathan Turner
committed
Print out the output line that fails json parsing
1 parent 3157691 commit d25688e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/compiletest/src/json.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ fn parse_line(file_name: &str, line: &str) -> Vec<Error> {
7272
expected_errors
7373
}
7474
Err(error) => {
75-
panic!("failed to decode compiler output as json: `{}`", error);
75+
panic!("failed to decode compiler output as json: `{}` when parsing: {}", error,
76+
line);
7677
}
7778
}
7879
} else {

0 commit comments

Comments
 (0)