Status code is an int, fix printing
This commit is contained in:
parent
974332c2c5
commit
7ec7d34783
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue