diff --git a/lib/recurly/api/net_http_adapter.rb b/lib/recurly/api/net_http_adapter.rb index 7432c796b..fdb858858 100644 --- a/lib/recurly/api/net_http_adapter.rb +++ b/lib/recurly/api/net_http_adapter.rb @@ -99,6 +99,8 @@ def request method, uri, options = {} when 200...300 then response else raise ERRORS[code].new request, response end + rescue Errno::ECONNREFUSED => e + raise Error, e.message end end end