bin/check-cloudwatch-alarms.rb in sensu-plugins-aws-10.1.1 vs bin/check-cloudwatch-alarms.rb in sensu-plugins-aws-10.1.2
- old
+ new
@@ -68,11 +68,10 @@
end
critical "#{alarms.size} in '#{config[:state]}' state: #{alarms.map(&:alarm_name).join(',')}" unless alarms.empty?
ok 'everything looks good'
-
- rescue => e
+ rescue StandardError => e
puts "Error: exception: #{e}"
critical
end
end