From 9da7d303624251446770a2c405e53cb7e9c034f0 Mon Sep 17 00:00:00 2001 From: Wei Fu Date: Thu, 25 Jul 2019 16:32:40 +0800 Subject: [PATCH] archive: return chtimes error with path information Signed-off-by: Wei Fu --- archive/time_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archive/time_unix.go b/archive/time_unix.go index fd8d98bf3..e05ca719c 100644 --- a/archive/time_unix.go +++ b/archive/time_unix.go @@ -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