1
Fork 0
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:
Roy Ivy III 2018-09-22 23:31:54 -05:00 committed by Roy Ivy III
parent e00d586af1
commit 556a96406c

View file

@ -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,