Skip to content

Commit 9da7d30

Browse files
committed
archive: return chtimes error with path information
Signed-off-by: Wei Fu <[email protected]>
1 parent c90a3d4 commit 9da7d30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

archive/time_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func chtimes(path string, atime, mtime time.Time) error {
3232
utimes[1] = unix.NsecToTimespec(mtime.UnixNano())
3333

3434
if err := unix.UtimesNanoAt(unix.AT_FDCWD, path, utimes[0:], unix.AT_SYMLINK_NOFOLLOW); err != nil {
35-
return errors.Wrap(err, "failed call to UtimesNanoAt")
35+
return errors.Wrapf(err, "failed call to UtimesNanoAt for %s", path)
3636
}
3737

3838
return nil

0 commit comments

Comments
 (0)