mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
Merge pull request #8875 from rhatdan/image
Allow image errors to bubble up from lower level functions.
This commit is contained in:
@ -497,7 +497,7 @@ func (ir *Runtime) getLocalImage(inputName string) (string, *storage.Image, erro
|
||||
return inputName, repoImage, nil
|
||||
}
|
||||
|
||||
return "", nil, errors.Wrapf(ErrNoSuchImage, err.Error())
|
||||
return "", nil, err
|
||||
}
|
||||
|
||||
// ID returns the image ID as a string
|
||||
|
@ -45,7 +45,8 @@ func findImageInRepotags(search imageParts, images []*Image) (*storage.Image, er
|
||||
}
|
||||
}
|
||||
if len(candidates) == 0 {
|
||||
return nil, errors.Errorf("unable to find a name and tag match for %s in repotags", searchName)
|
||||
|
||||
return nil, errors.Wrapf(define.ErrNoSuchImage, "unable to find a name and tag match for %s in repotags", searchName)
|
||||
}
|
||||
|
||||
// If more then one candidate and the candidates all have same name
|
||||
|
Reference in New Issue
Block a user