mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 19:56:09 +01:00
handle path not found when to delete manifest
Return not found error if gets the driver PathNotFound. Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
2041fd337b
commit
53fb5c4230
@ -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