Skip to content

Commit

Permalink
expand on an error case with more descriptive error
Browse files Browse the repository at this point in the history
  • Loading branch information
catsby committed Aug 21, 2015
1 parent 9598372 commit 720562e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builtin/providers/aws/resource_aws_security_group_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ func resourceAwsSecurityGroupRuleRead(d *schema.ResourceData, meta interface{})
p := expandIPPerm(d, sg)

if len(rules) == 0 {
return fmt.Errorf("No IPPerms")
return fmt.Errorf(
"[WARN] No %s rules were found for Security Group (%s) looking for Security Group Rule (%s)",
ruleType, *sg.GroupName, d.Id())
}

for _, r := range rules {
Expand Down

0 comments on commit 720562e

Please sign in to comment.