Skip to content

Commit 577872f

Browse files
Merge pull request #3454 from fuweid/enrich-error-message
archive: return chtimes error with path information
2 parents fdab4f4 + 9da7d30 commit 577872f

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)