Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
hbuckle committed Jan 3, 2019
1 parent 3efa63c commit c485797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azurerm/resource_arm_firewall_application_rule_collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ func resourceArmFirewallApplicationRuleCollectionCreateUpdate(d *schema.Resource
}

if firewall.AzureFirewallPropertiesFormat == nil {
return fmt.Errorf("Error retrieving Application Rule Collection %q (Firewall %q / Resource Group %q): `properties` was nil", firewallName, resourceGroup)
return fmt.Errorf("Error retrieving Application Rule Collections (Firewall %q / Resource Group %q): `properties` was nil", firewallName, resourceGroup)
}
props := *firewall.AzureFirewallPropertiesFormat

if props.ApplicationRuleCollections == nil {
return fmt.Errorf("Error retrieving Application Rule Collection %q (Firewall %q / Resource Group %q): `properties.ApplicationRuleCollections` was nil", firewallName, resourceGroup)
return fmt.Errorf("Error retrieving Application Rule Collections (Firewall %q / Resource Group %q): `properties.ApplicationRuleCollections` was nil", firewallName, resourceGroup)
}
ruleCollections := *props.ApplicationRuleCollections

Expand Down

0 comments on commit c485797

Please sign in to comment.