mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 03:55:28 +00:00
chore: improve log message
This commit is contained in:
parent
639ef19fbc
commit
78d8488d93
@ -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()
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -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()
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -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()
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user