From 2c1a446e5c8fc6e8984fac243b9405eacb9b5301 Mon Sep 17 00:00:00 2001 From: nick-lee13 Date: Thu, 20 Jul 2023 13:58:35 -0700 Subject: [PATCH] mv: Change confusing error msg --- src/uu/mv/src/mv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/mv/src/mv.rs b/src/uu/mv/src/mv.rs index 32214b302ad..94d26929751 100644 --- a/src/uu/mv/src/mv.rs +++ b/src/uu/mv/src/mv.rs @@ -485,7 +485,7 @@ 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, "Directory with the same name already exists at destination")); } } }