bin/check-consul-failures.rb in sensu-plugins-consul-0.0.6 vs bin/check-consul-failures.rb in sensu-plugins-consul-0.0.7

- old
+ new

@@ -51,11 +51,13 @@ ok 'No consul nodes to remove' end else critical 'Consul is not responding' end - rescue Errno::ECONNREFUSED - critical 'Consul is not responding' - rescue RestClient::RequestTimeout - critical 'Consul Connection timed out' + rescue Errno::ECONNREFUSED + critical 'Consul is not responding' + rescue RestClient::RequestTimeout + critical 'Consul Connection timed out' + rescue RestClient::Exception => e + unknown "Consul returned: #{e}" end end