Skip to content

Commit aeac3da

Browse files
Michael Wrightflip1995
authored andcommitted
Improve fmt test failure message
1 parent 11707f3 commit aeac3da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/fmt.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ fn fmt() {
1616
println!("stdout: {}", String::from_utf8_lossy(&output.stdout));
1717
println!("stderr: {}", String::from_utf8_lossy(&output.stderr));
1818

19-
assert!(output.status.success());
19+
assert!(
20+
output.status.success(),
21+
"Formatting check failed. Run `./util/dev fmt` to update formatting."
22+
);
2023
}

0 commit comments

Comments
 (0)