From 033683d629401c4cbe9f3f44239982bf2a743672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pereira?= <484633+joaodrp@users.noreply.github.com> Date: Sun, 6 Jun 2021 19:53:34 +0100 Subject: [PATCH] apply feedback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Pereira <484633+joaodrp@users.noreply.github.com> --- registry/handlers/manifests.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/registry/handlers/manifests.go b/registry/handlers/manifests.go index 8b365c704..5af59aaf8 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 }