diff --git a/registry/handlers/manifests.go b/registry/handlers/manifests.go index 8b365c70..5af59aaf 100644 --- a/registry/handlers/manifests.go +++ b/registry/handlers/manifests.go @@ -492,13 +492,14 @@ func (imh *manifestHandler) DeleteManifest(w http.ResponseWriter, r *http.Reques } if imh.Tag != "" { + dcontext.GetLogger(imh).Debug("DeleteImageTag") tagService := imh.Repository.Tags(imh.Context) if err := tagService.Untag(imh.Context, imh.Tag); err != nil { switch err.(type) { case distribution.ErrTagUnknown, driver.PathNotFoundError: - imh.Errors = append(imh.Errors, v2.ErrorCodeManifestUnknown) + imh.Errors = append(imh.Errors, v2.ErrorCodeManifestUnknown.WithDetail(err)) default: - imh.Errors = append(imh.Errors, errcode.ErrorCodeUnknown) + imh.Errors = append(imh.Errors, errcode.ErrorCodeUnknown.WithDetail(err)) } return }