Skip to content

Commit

Permalink
print diff path
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Apr 15, 2024
1 parent ba28dca commit 01fe4df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ fn check_dir(
}
let diff_path = reports_dir.join("errors.diff");
let mut file =
std::fs::File::create(diff_path).expect("report.to_disk() failed to create file");
std::fs::File::create(&diff_path).expect("report.to_disk() failed to create file");
file.write_all(diff.as_bytes())
.expect("failed to write report");

Expand All @@ -588,6 +588,8 @@ fn check_dir(
// TODO do the same for removed ices?
println!("NEW ICES:\n{new_ices:#?}");

println!("diff was written to {}", diff_path.display());

if args.skip_report {
eprintln!("Skipping reports as asked via --skip-report");
} else {
Expand Down

0 comments on commit 01fe4df

Please sign in to comment.