diff --git a/src/main.rs b/src/main.rs index 7e01157..3562fa5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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"); @@ -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 {