prevent misleading message from being logged
parent
6bcddb0ab4
commit
01221e0566
|
@ -74,6 +74,7 @@ func SaveToDir(images []string, cacheDir string, overwrite bool) error {
|
||||||
if err := saveToTarFile(image, dst, overwrite); err != nil {
|
if err := saveToTarFile(image, dst, overwrite); err != nil {
|
||||||
if err == errCacheImageDoesntExist {
|
if err == errCacheImageDoesntExist {
|
||||||
out.WarningT("The image you are trying to add {{.imageName}} doesn't exist!", out.V{"imageName": image})
|
out.WarningT("The image you are trying to add {{.imageName}} doesn't exist!", out.V{"imageName": image})
|
||||||
|
return nil
|
||||||
} else {
|
} else {
|
||||||
return errors.Wrapf(err, "caching image %q", dst)
|
return errors.Wrapf(err, "caching image %q", dst)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue