c8d: Return the "tag does not exist error"
In the tagged case the error message when the image/tag is not found should be "tag does not exist: ref" Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
parent
c3ca4f5de0
commit
8166818791
1 changed files with 3 additions and 0 deletions
|
@ -89,6 +89,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