From b4c228f799fc0a7c738e980c8c9d7c8bb72d58a5 Mon Sep 17 00:00:00 2001 From: Jonas Nicklas Date: Tue, 9 Nov 2010 14:05:56 +0100 Subject: [PATCH] catch correct error, on server timeout, closes #185 --- lib/capybara/server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capybara/server.rb b/lib/capybara/server.rb index 9f38ee75e..3fdcb1c0b 100644 --- a/lib/capybara/server.rb +++ b/lib/capybara/server.rb @@ -68,7 +68,7 @@ def boot Capybara.timeout(10) { if responsive? then true else sleep(0.5) and false end } end end - rescue Timeout::Error + rescue TimeoutError puts "Rack application timed out during boot" exit else