From b21b757af1aeb1fbecb37801bb88e2f978cf6f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos=20P=2E=20Bezerra?= Date: Sun, 17 Nov 2024 23:11:22 -0300 Subject: [PATCH] chore: improve log message --- src/archive/sevenz.rs | 2 +- src/archive/tar.rs | 2 +- src/archive/zip.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/archive/sevenz.rs b/src/archive/sevenz.rs index af5ca830..587a4a11 100644 --- a/src/archive/sevenz.rs +++ b/src/archive/sevenz.rs @@ -49,7 +49,7 @@ where if let Ok(handle) = &output_handle { if matches!(Handle::from_path(path), Ok(x) if &x == handle) { warning(format!( - "The output file and the input file are the same: `{}`, skipping...", + "Cannot compress `{}` into itself, skipping.", output_path.display() )); diff --git a/src/archive/tar.rs b/src/archive/tar.rs index 6da1fc0c..c313f8f6 100644 --- a/src/archive/tar.rs +++ b/src/archive/tar.rs @@ -109,7 +109,7 @@ where if let Ok(handle) = &output_handle { if matches!(Handle::from_path(path), Ok(x) if &x == handle) { warning(format!( - "The output file and the input file are the same: `{}`, skipping...", + "Cannot compress `{}` into itself, skipping.", output_path.display() )); diff --git a/src/archive/zip.rs b/src/archive/zip.rs index 13018bd2..eb420d47 100644 --- a/src/archive/zip.rs +++ b/src/archive/zip.rs @@ -197,7 +197,7 @@ where if let Ok(handle) = &output_handle { if matches!(Handle::from_path(path), Ok(x) if &x == handle) { warning(format!( - "The output file and the input file are the same: `{}`, skipping...", + "Cannot compress `{}` into itself, skipping.", output_path.display() )); }