diff --git a/src/uu/cp/src/copydir.rs b/src/uu/cp/src/copydir.rs index db2f4ff1986..826b3abc3ef 100644 --- a/src/uu/cp/src/copydir.rs +++ b/src/uu/cp/src/copydir.rs @@ -318,6 +318,16 @@ fn copy_direntry( ), )); } + CpError::IoErrContext(e, _) if e.kind() == io::ErrorKind::NotFound => { + show!(uio_error!( + e, + "{}", + translate!( + "cp-error-cannot-stat-no-such-file", + "source" => entry.source_relative.quote() + ), + )); + } e => return Err(e), } }