Log caching errors

pull/5224/head
tstromberg 2019-08-28 14:17:03 -07:00
parent 3b198d19d6
commit 79d7f8a737
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ func CacheImages(images []string, cacheDir string) error {
dst := filepath.Join(cacheDir, image)
dst = sanitizeCacheDir(dst)
if err := CacheImage(image, dst); err != nil {
glog.Errorf("CacheImage %s -> %s failed: %v", image, dst, err)
return errors.Wrapf(err, "caching image %s", dst)
}
glog.Infof("CacheImage %s -> %s succeeded", image, dst)