fix CI error

This commit is contained in:
Ezra Shaw 2023-01-02 09:20:41 +13:00
parent 24671b7fd5
commit def1b7cb9a
No known key found for this signature in database
GPG Key ID: 17CD5C2ADAE0D344

View File

@ -289,11 +289,12 @@ fn check_error_codes_tests(root_path: &Path, error_codes: &[String], errors: &mu
continue;
}
let file = match fs::read_to_string(test_path) {
let file = match fs::read_to_string(&test_path) {
Ok(file) => file,
Err(err) => {
println!(
"WARNING: Failed to read UI test file (`{test_path}`) for `{code}` but the file exists. The test is assumed to work:\n{err}"
"WARNING: Failed to read UI test file (`{}`) for `{code}` but the file exists. The test is assumed to work:\n{err}",
test_path.display()
);
continue;
}