From d67df1bb771e2279c76be8284c55016bfbc488b5 Mon Sep 17 00:00:00 2001 From: John Chow Date: Sat, 1 Mar 2014 13:12:48 -0800 Subject: [PATCH] Catch an IOError that happens on Ruby 2.0 Would get a # error on Ruby 2.0 --- lib/rack/livereload/body_processor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rack/livereload/body_processor.rb b/lib/rack/livereload/body_processor.rb index 5f47c05..c5fc029 100644 --- a/lib/rack/livereload/body_processor.rb +++ b/lib/rack/livereload/body_processor.rb @@ -45,7 +45,7 @@ module Rack begin http.send_request('GET', uri.path) @use_vendored = false - rescue ::Timeout::Error, Errno::ECONNREFUSED, EOFError + rescue ::Timeout::Error, Errno::ECONNREFUSED, EOFError, IOError @use_vendored = true rescue => e $stderr.puts e.inspect -- 2.40.1