diff --git a/lib/cfnguardian/compile.rb b/lib/cfnguardian/compile.rb index c35b63b..973fb87 100644 --- a/lib/cfnguardian/compile.rb +++ b/lib/cfnguardian/compile.rb @@ -162,7 +162,7 @@ def validate_resources() when 'Alarm' %w(metric_name namespace).each do |property| if resource.send(property).nil? - errors << "Alarm #{resource.name} for resource #{resource.resource_id} has nil value for property #{property.to_camelcase}" + errors << "Alarm #{resource.name} for resource #{resource.resource_id} has nil value for property #{property.to_camelcase}. This could be due to incorrect spelling of a default alarm name or missing property #{property.to_camelcase} on a new alarm." end end when 'Check'