mirror of https://github.com/minio/minio.git
madmin: Little error description when parsing server error msg (#9709)
This commit is contained in:
parent
9d39fb3604
commit
cccf2de129
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue