Status code is an int, fix printing

This commit is contained in:
Jeff Mitchell 2017-10-04 15:41:51 -04:00
parent 974332c2c5
commit 7ec7d34783
1 changed files with 1 additions and 1 deletions

View File

@ -1507,7 +1507,7 @@ func submitCallerIdentityRequest(method, endpoint string, parsedUrl *url.URL, bo
return nil, err return nil, err
} }
if response.StatusCode != 200 { if response.StatusCode != 200 {
return nil, fmt.Errorf("received error code %s from STS: %s", response.StatusCode, string(responseBody)) return nil, fmt.Errorf("received error code %d from STS: %s", response.StatusCode, string(responseBody))
} }
callerIdentityResponse, err := parseGetCallerIdentityResponse(string(responseBody)) callerIdentityResponse, err := parseGetCallerIdentityResponse(string(responseBody))
if err != nil { if err != nil {