From f8e93e1554a99568661f4aba05c3ca5fdf4d3717 Mon Sep 17 00:00:00 2001 From: Florian Staudacher Date: Tue, 1 Sep 2015 01:36:04 +0200 Subject: [PATCH] forgot to pass my own exceptions through --- lib/connection_tester.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/connection_tester.rb b/lib/connection_tester.rb index b7cb9c9fb..9b36e5e47 100644 --- a/lib/connection_tester.rb +++ b/lib/connection_tester.rb @@ -108,6 +108,8 @@ class ConnectionTester response = capture_response_time { http.get("/") } handle_http_response(response) end + rescue HTTPFailure => e + raise e rescue Faraday::ConnectionFailed, Faraday::TimeoutError => e raise NetFailure, e.message rescue Faraday::SSLError => e