prevent misleading message from being logged

pull/11601/head
Steven Powell 2021-06-07 15:09:08 -07:00
parent 6bcddb0ab4
commit 01221e0566
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ func SaveToDir(images []string, cacheDir string, overwrite bool) error {
if err := saveToTarFile(image, dst, overwrite); err != nil {
if err == errCacheImageDoesntExist {
out.WarningT("The image you are trying to add {{.imageName}} doesn't exist!", out.V{"imageName": image})
return nil
} else {
return errors.Wrapf(err, "caching image %q", dst)
}