diff --git a/builtin/providers/aws/resource_aws_subnet.go b/builtin/providers/aws/resource_aws_subnet.go index b3fefc0ec..2c66419e6 100644 --- a/builtin/providers/aws/resource_aws_subnet.go +++ b/builtin/providers/aws/resource_aws_subnet.go @@ -30,7 +30,7 @@ func resource_aws_subnet_create( log.Printf("[DEBUG] Subnet create config: %#v", createOpts) resp, err := ec2conn.CreateSubnet(createOpts) if err != nil { - return nil, fmt.Errorf("Error creating subnet: %s", resp) + return nil, fmt.Errorf("Error creating subnet: %s", err) } // Get the ID and store it