diff --git a/builtin/providers/aws/resource_aws_internet_gateway.go b/builtin/providers/aws/resource_aws_internet_gateway.go index d7542aab6..b3924ae23 100644 --- a/builtin/providers/aws/resource_aws_internet_gateway.go +++ b/builtin/providers/aws/resource_aws_internet_gateway.go @@ -122,10 +122,11 @@ func IGStateRefreshFunc(conn *ec2.EC2, id string) resource.StateRefreshFunc { return func() (interface{}, string, error) { resp, err := conn.DescribeInternetGateways([]string{id}, ec2.NewFilter()) if err != nil { - if ec2err, ok := err.(*ec2.Error); ok && ec2err.Code == "InvalidInternetGatewayID.NotFound" { + ec2err, ok := err.(*ec2.Error) + if ok && ec2err.Code == "InvalidInternetGatewayID.NotFound" { resp = nil } else { - log.Printf("Error on IGStateRefresh: %s", err) + log.Printf("[ERROR] Error on IGStateRefresh: %s", err) return nil, "", err } }