Return correct error when PutObject fails

This commit is contained in:
Remco Verhoef 2017-05-08 17:02:03 -07:00 committed by Harshavardhana
parent de5374f74c
commit 6dbc5aba09
1 changed files with 1 additions and 0 deletions

View File

@ -285,6 +285,7 @@ func (api gatewayAPIHandlers) PutObjectHandler(w http.ResponseWriter, r *http.Re
}
if err != nil {
errorIf(err, "Unable to save an object %s", r.URL.Path)
writeErrorResponse(w, toAPIErrorCode(err), r.URL)
return
}