Skip to content

Commit

Permalink
aws/ec2metadata: Fix typo in error message (aws#2734)
Browse files Browse the repository at this point in the history
Fixes a typo in the request error message.
  • Loading branch information
ethan authored and jasdel committed Aug 7, 2019
1 parent b2459dd commit 86a34f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws/ec2metadata/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func unmarshalHandler(r *request.Request) {
defer r.HTTPResponse.Body.Close()
b := &bytes.Buffer{}
if _, err := io.Copy(b, r.HTTPResponse.Body); err != nil {
r.Error = awserr.New(request.ErrCodeSerialization, "unable to unmarshal EC2 metadata respose", err)
r.Error = awserr.New(request.ErrCodeSerialization, "unable to unmarshal EC2 metadata response", err)
return
}

Expand All @@ -136,7 +136,7 @@ func unmarshalError(r *request.Request) {
defer r.HTTPResponse.Body.Close()
b := &bytes.Buffer{}
if _, err := io.Copy(b, r.HTTPResponse.Body); err != nil {
r.Error = awserr.New(request.ErrCodeSerialization, "unable to unmarshal EC2 metadata error respose", err)
r.Error = awserr.New(request.ErrCodeSerialization, "unable to unmarshal EC2 metadata error response", err)
return
}

Expand Down

0 comments on commit 86a34f2

Please sign in to comment.