madmin: Little error description when parsing server error msg (#9709)

This commit is contained in:
Anis Elleuch 2020-05-27 02:03:00 +01:00 committed by GitHub
parent 9d39fb3604
commit cccf2de129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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)