1
0
mirror of https://github.com/docker/cli.git synced 2026-01-16 20:22:36 +03:00

added better error message

Upstream-commit: c4640689affc84c5a975059c5fca27a8b22bd1d0
Component: engine
This commit is contained in:
Ken Cochrane
2013-03-15 15:04:36 -07:00
parent 2eb625d9e0
commit b985acb966

View File

@@ -107,7 +107,7 @@ func Login(authConfig AuthConfig) (string, error) {
defer req1.Body.Close()
reqBody, err = ioutil.ReadAll(req1.Body)
if err != nil {
errMsg = fmt.Sprintf("Server Error: [%s] %s", reqStatusCode, err)
errMsg = fmt.Sprintf("Server Error: [%#v] %s", reqStatusCode, err)
return "", errors.New(errMsg)
}