mirror of
https://github.com/minio/minio.git
synced 2025-11-07 04:42:56 -05:00
Return correct error when PutObject fails
This commit is contained in:
committed by
Harshavardhana
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user