Group case values

Signed-off-by: João Pereira <484633+joaodrp@users.noreply.github.com>
This commit is contained in:
João Pereira 2021-05-28 10:33:26 +01:00
parent 1398d3b5c6
commit 81f081f91b
No known key found for this signature in database
GPG key ID: C325CA2B821F7043

View file

@ -495,8 +495,7 @@ func (imh *manifestHandler) DeleteManifest(w http.ResponseWriter, r *http.Reques
tagService := imh.Repository.Tags(imh.Context)
if err := tagService.Untag(imh.Context, imh.Tag); err != nil {
switch err.(type) {
case distribution.ErrTagUnknown:
case driver.PathNotFoundError:
case distribution.ErrTagUnknown, driver.PathNotFoundError:
imh.Errors = append(imh.Errors, v2.ErrorCodeManifestUnknown)
default:
imh.Errors = append(imh.Errors, errcode.ErrorCodeUnknown)