From 1fc57751d25838f3e86efe7abbc1c3bf8a7551aa Mon Sep 17 00:00:00 2001 From: Guslington Date: Thu, 26 May 2022 12:08:07 +1000 Subject: [PATCH] add possible reasons for error for alarm override validation failure --- lib/cfnguardian/compile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'