Merge pull request #46685 from rumpl/c8d-tag-does-not-exist
c8d: Return the "tag does not exist error"
This commit is contained in:
commit
2f138d860e
1 changed files with 3 additions and 0 deletions
|
@ -93,6 +93,9 @@ func (i *ImageService) pushRef(ctx context.Context, targetRef reference.Named, m
|
|||
|
||||
img, err := i.client.ImageService().Get(ctx, targetRef.String())
|
||||
if err != nil {
|
||||
if cerrdefs.IsNotFound(err) {
|
||||
return errdefs.NotFound(fmt.Errorf("tag does not exist: %s", reference.FamiliarString(targetRef)))
|
||||
}
|
||||
return errdefs.NotFound(err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue