diff --git a/lib/rack-livereload.rb b/lib/rack-livereload.rb index 4c49c9f..8bacb56 100644 --- a/lib/rack-livereload.rb +++ b/lib/rack-livereload.rb @@ -1,6 +1,6 @@ require "rack/livereload" class Rack::LiveReload - VERSION = '0.2.0' + VERSION = '0.2.1' end diff --git a/lib/rack/livereload.rb b/lib/rack/livereload.rb index 1bfefdd..76872e1 100644 --- a/lib/rack/livereload.rb +++ b/lib/rack/livereload.rb @@ -27,8 +27,11 @@ module Rack begin http.send_request('GET', uri.path) @use_vendored = false - rescue Timeout::Error, Errno::ECONNREFUSED + rescue Timeout::Error, Errno::ECONNREFUSED, EOFError @use_vendored = true + rescue => e + $stderr.puts e.inspect + raise e end end