From 01fe4df4e7167c03ef5372337e24b3dfcfaac3f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Mon, 15 Apr 2024 21:27:29 +0200 Subject: [PATCH] print diff path --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {