Browse Source

added better error message

Ken Cochrane 12 years ago
parent
commit
c4640689af
1 changed files with 1 additions and 1 deletions
  1. 1 1
      auth/auth.go

+ 1 - 1
auth/auth.go

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