Skip to content

Commit 8b16ccd

Browse files
committed
Return proper errors with update_err
1 parent b7908fe commit 8b16ccd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/io/fs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ pub fn copy(from: &Path, to: &Path) -> IoResult<()> {
382382
let mut reader = try!(File::open(from));
383383
let mut writer = try!(File::create(to));
384384

385-
try!(super::util::copy(&mut reader, &mut writer));
385+
try!(update_err(super::util::copy(&mut reader, &mut writer), from, to));
386386

387387
chmod(to, try!(update_err(from.stat(), from, to)).perm)
388388
}

0 commit comments

Comments
 (0)