mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
added better error message
This commit is contained in:
parent
27ad71e025
commit
c4640689af
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ func Login(authConfig AuthConfig) (string, error) {
|
||||||
defer req1.Body.Close()
|
defer req1.Body.Close()
|
||||||
reqBody, err = ioutil.ReadAll(req1.Body)
|
reqBody, err = ioutil.ReadAll(req1.Body)
|
||||||
if err != nil {
|
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)
|
return "", errors.New(errMsg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue