fix an issue with catching network traffic errors
This commit is contained in:
parent
c12bf6b01e
commit
cc745deaa0
|
@ -1,6 +1,6 @@
|
||||||
require "rack/livereload"
|
require "rack/livereload"
|
||||||
|
|
||||||
class Rack::LiveReload
|
class Rack::LiveReload
|
||||||
VERSION = '0.2.0'
|
VERSION = '0.2.1'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -27,8 +27,11 @@ module Rack
|
||||||
begin
|
begin
|
||||||
http.send_request('GET', uri.path)
|
http.send_request('GET', uri.path)
|
||||||
@use_vendored = false
|
@use_vendored = false
|
||||||
rescue Timeout::Error, Errno::ECONNREFUSED
|
rescue Timeout::Error, Errno::ECONNREFUSED, EOFError
|
||||||
@use_vendored = true
|
@use_vendored = true
|
||||||
|
rescue => e
|
||||||
|
$stderr.puts e.inspect
|
||||||
|
raise e
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue