Skip to content

Commit

Permalink
Merge pull request moby#46685 from rumpl/c8d-tag-does-not-exist
Browse files Browse the repository at this point in the history
c8d: Return the "tag does not exist error"
  • Loading branch information
cpuguy83 authored Nov 2, 2023
2 parents d3f4876 + 8166818 commit 2f138d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions daemon/containerd/image_push.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 2f138d8

Please sign in to comment.