Auto merge of #27549 - tshepang:clarity, r=alexcrichton
This commit is contained in:
commit
f1ae605db8
@ -536,7 +536,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
|
||||
use fs::{File, PathExt, set_permissions};
|
||||
if !from.is_file() {
|
||||
return Err(Error::new(ErrorKind::InvalidInput,
|
||||
"the source path is not an existing file"))
|
||||
"the source path is not an existing regular file"))
|
||||
}
|
||||
|
||||
let mut reader = try!(File::open(from));
|
||||
|
Loading…
Reference in New Issue
Block a user