Skip to content

Commit

Permalink
Merge pull request #709 from QiWang19/resplog
Browse files Browse the repository at this point in the history
add http response to log
  • Loading branch information
mtrmac authored Sep 27, 2019
2 parents ddb11c0 + 618003c commit 0fcdae1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/docker_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ func (c *dockerClient) getBearerToken(ctx context.Context, challenge challenge,
defer res.Body.Close()
switch res.StatusCode {
case http.StatusUnauthorized:
err := client.HandleErrorResponse(res)
logrus.Debugf("Server response when trying to obtain an access token: \n%q", err.Error())
return nil, ErrUnauthorizedForCredentials
case http.StatusOK:
break
Expand Down

0 comments on commit 0fcdae1

Please sign in to comment.