providers/aws: fix error message for aws_subnet

This commit is contained in:
Mitchell Hashimoto 2014-07-07 15:03:18 -07:00
parent 21539d08a8
commit 10e3cad5ce

View File

@ -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