mirror of
https://github.com/minio/minio.git
synced 2025-03-30 09:13:41 -04:00
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 {
|
if err != nil {
|
||||||
|
errorIf(err, "Unable to save an object %s", r.URL.Path)
|
||||||
writeErrorResponse(w, toAPIErrorCode(err), r.URL)
|
writeErrorResponse(w, toAPIErrorCode(err), r.URL)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user