chore: improve log message

This commit is contained in:
João Marcos P. Bezerra 2024-11-17 23:11:22 -03:00 committed by João Marcos
parent 065124cd30
commit b21b757af1
3 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ where
if let Ok(handle) = &output_handle { if let Ok(handle) = &output_handle {
if matches!(Handle::from_path(path), Ok(x) if &x == handle) { if matches!(Handle::from_path(path), Ok(x) if &x == handle) {
warning(format!( warning(format!(
"The output file and the input file are the same: `{}`, skipping...", "Cannot compress `{}` into itself, skipping.",
output_path.display() output_path.display()
)); ));

View File

@ -109,7 +109,7 @@ where
if let Ok(handle) = &output_handle { if let Ok(handle) = &output_handle {
if matches!(Handle::from_path(path), Ok(x) if &x == handle) { if matches!(Handle::from_path(path), Ok(x) if &x == handle) {
warning(format!( warning(format!(
"The output file and the input file are the same: `{}`, skipping...", "Cannot compress `{}` into itself, skipping.",
output_path.display() output_path.display()
)); ));

View File

@ -197,7 +197,7 @@ where
if let Ok(handle) = &output_handle { if let Ok(handle) = &output_handle {
if matches!(Handle::from_path(path), Ok(x) if &x == handle) { if matches!(Handle::from_path(path), Ok(x) if &x == handle) {
warning(format!( warning(format!(
"The output file and the input file are the same: `{}`, skipping...", "Cannot compress `{}` into itself, skipping.",
output_path.display() output_path.display()
)); ));
} }