Skip to content

Commit 4bef8b4

Browse files
committed
Improve error message for test
1 parent 794d4a7 commit 4bef8b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/cargo-fmt/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ fn cargo_fmt_out_of_line_test_modules() {
9494
let (stdout, _) = cargo_fmt(&args);
9595
for file in expected_modified_files {
9696
let path = Path::new(file).canonicalize().unwrap();
97-
assert!(stdout.contains(&format!("Diff in {}", path.display())))
97+
assert!(
98+
stdout.contains(&format!("Diff in {}", path.display())),
99+
"{}",
100+
path.display()
101+
);
98102
}
99103
}
100104

0 commit comments

Comments
 (0)