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() )); }