mirror of https://github.com/minio/minio.git
Return correct error when PutObject fails
This commit is contained in:
parent
de5374f74c
commit
6dbc5aba09
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue