mute log filer: no entry is found in filer store (#3707)

This commit is contained in:
Konstantin Lebedev 2022-09-16 21:05:38 +05:00 committed by GitHub
parent 824f7ad9e1
commit 5d87ad72d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -195,6 +195,8 @@ func (fs *FilerServer) DeleteHandler(w http.ResponseWriter, r *http.Request) {
httpStatus := http.StatusInternalServerError
if err == filer_pb.ErrNotFound {
httpStatus = http.StatusNoContent
writeJsonQuiet(w, r, httpStatus, nil)
return
}
writeJsonError(w, r, httpStatus, err)
return