[#450] Do not pass nil error to logAndSendError

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2022-05-24 16:17:45 +03:00 committed by Kira
parent 385437aace
commit 80c6122f55

View file

@ -378,7 +378,7 @@ func (h *handler) PutBucketPolicyHandler(w http.ResponseWriter, r *http.Request)
}
token, err := getSessionTokenSetEACL(r.Context())
if err == nil {
if err != nil {
h.logAndSendError(w, "couldn't get eacl token", reqInfo, err)
return
}