Merge pull request #12556 from wy65701436/rm-mf-404

handle path not found when to delete manifest
This commit is contained in:
Daniel Jiang 2020-07-23 11:22:21 +08:00 committed by GitHub
commit a6c7e15d7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ func (h *handler) delete(w http.ResponseWriter, r *http.Request) {
cleaner := storage.NewVacuum(r.Context(), h.storageDriver)
if err := cleaner.RemoveManifest(repoName, dgst, tags); err != nil {
log.Infof("failed to remove manifest: %s, with error:%v", ref, err)
api.HandleInternalServerError(w, err)
api.HandleError(w, err)
return
}
}