diff --git a/pkg/madmin/api-error-response.go b/pkg/madmin/api-error-response.go index c328c33f9..48cb779f1 100644 --- a/pkg/madmin/api-error-response.go +++ b/pkg/madmin/api-error-response.go @@ -18,6 +18,7 @@ package madmin import ( "encoding/xml" + "fmt" "net/http" ) @@ -70,7 +71,7 @@ func httpRespToErrorResponse(resp *http.Response) error { if err != nil { return ErrorResponse{ Code: resp.Status, - Message: "Failed to parse server response.", + Message: fmt.Sprintf("Failed to parse server response: %s.", err), } } closeResponse(resp)