bin/handler-clockworksms.rb in sensu-plugins-clockworksms-0.0.4 vs bin/handler-clockworksms.rb in sensu-plugins-clockworksms-1.0.0

- old
+ new

@@ -39,11 +39,11 @@ def handle key = settings['clockworksms']['key'] to = settings['clockworksms']['to'] from = settings['clockworksms']['from'] || 'SENSU' - fail 'Please define a valid SMS key' if key.nil? - fail 'Please define a valid set of SMS recipients to use this handler' if to.nil? || !to.is_a?(Hash) + raise 'Please define a valid SMS key' if key.nil? + raise 'Please define a valid set of SMS recipients to use this handler' if to.nil? || !to.is_a?(Hash) message = @event['check']['notification'] || @event['check']['output'] @api = Clockwork::API.new(key)