Skip to content

Commit

Permalink
mv: Change error message
Browse files Browse the repository at this point in the history
  • Loading branch information
PThorpe92 authored and sylvestre committed Sep 24, 2023
1 parent 1c03d16 commit a0904e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/uu/mv/src/mv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,10 @@ fn rename(
if is_empty_dir(to) {
fs::remove_dir(to)?;
} else {
return Err(io::Error::new(io::ErrorKind::Other, "Directory not empty"));
return Err(io::Error::new(
io::ErrorKind::Other,
"A directory with the same name exists at destination",
));
}
}
}
Expand Down

0 comments on commit a0904e5

Please sign in to comment.