mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-17 07:45:24 +01:00
Merge pull request #12556 from wy65701436/rm-mf-404
handle path not found when to delete manifest
This commit is contained in:
commit
a6c7e15d7e
@ -54,7 +54,7 @@ func (h *handler) delete(w http.ResponseWriter, r *http.Request) {
|
|||||||
cleaner := storage.NewVacuum(r.Context(), h.storageDriver)
|
cleaner := storage.NewVacuum(r.Context(), h.storageDriver)
|
||||||
if err := cleaner.RemoveManifest(repoName, dgst, tags); err != nil {
|
if err := cleaner.RemoveManifest(repoName, dgst, tags); err != nil {
|
||||||
log.Infof("failed to remove manifest: %s, with error:%v", ref, err)
|
log.Infof("failed to remove manifest: %s, with error:%v", ref, err)
|
||||||
api.HandleInternalServerError(w, err)
|
api.HandleError(w, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user