From 6dbc5aba09c0096f99ebb56a1549f149dbea234c Mon Sep 17 00:00:00 2001 From: Remco Verhoef Date: Mon, 8 May 2017 17:02:03 -0700 Subject: [PATCH] Return correct error when PutObject fails --- cmd/gateway-handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/gateway-handlers.go b/cmd/gateway-handlers.go index de364174d..75891d432 100644 --- a/cmd/gateway-handlers.go +++ b/cmd/gateway-handlers.go @@ -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 }