lib/app_monit/event.rb in app_monit-0.0.10 vs lib/app_monit/event.rb in app_monit-0.0.11
- old
+ new
@@ -5,10 +5,10 @@
def self.create(*args)
create!(*args)
rescue Http::Error
false
rescue Timeout::Error, Errno::EINVAL, Errno::ECONNRESET, EOFError, Net::HTTPBadResponse,
- Net::HTTPHeaderSyntaxError, Net::ProtocolError, Errno::ETIMEDOUT => error
+ Net::HTTPHeaderSyntaxError, Net::ProtocolError, Errno::ETIMEDOUT, Errno::ECONNREFUSED => error
raise error unless AppMonit::Config.fail_silent
false
end
def self.create!(name, data_hash = {})