mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
mv: improve error message
This commit is contained in:
parent
e00d586af1
commit
556a96406c
1 changed files with 4 additions and 1 deletions
|
@ -257,7 +257,10 @@ fn exec(files: &[PathBuf], b: Behaviour) -> i32 {
|
||||||
|
|
||||||
return match rename(source, target, &b) {
|
return match rename(source, target, &b) {
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
show_error!("{}", e);
|
show_error!(
|
||||||
|
"cannot move ‘{}’ to ‘{}’: {}",
|
||||||
|
source.display(), target.display(), e
|
||||||
|
);
|
||||||
1
|
1
|
||||||
}
|
}
|
||||||
_ => 0,
|
_ => 0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue