Skip to content

Commit

Permalink
Merge pull request containerd#3454 from fuweid/enrich-error-message
Browse files Browse the repository at this point in the history
archive: return chtimes error with path information
  • Loading branch information
crosbymichael authored Jul 25, 2019
2 parents fdab4f4 + 9da7d30 commit 577872f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archive/time_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func chtimes(path string, atime, mtime time.Time) error {
utimes[1] = unix.NsecToTimespec(mtime.UnixNano())

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

return nil
Expand Down

0 comments on commit 577872f

Please sign in to comment.