mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-19 15:17:43 +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)
|
||||
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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user