From acfcdaba4b9f5cb867229b07dea9d2b8654640f9 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 26 Aug 2015 12:31:08 +0300 Subject: Catch "RecvErr" exceptions from curb. This prevents a slightly ugly backtrace instead of a genuinely useful report. --- lib/custodian/protocoltest/http.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb index 997f2f9..ac29dbb 100644 --- a/lib/custodian/protocoltest/http.rb +++ b/lib/custodian/protocoltest/http.rb @@ -278,6 +278,8 @@ module Custodian end end + rescue Curl::Err::RecvError => x + errors << "#{protocol_msg}: Receive error: #{x.message}." rescue Curl::Err::SSLCACertificateError => x errors << "#{protocol_msg}: SSL validation error: #{x.message}." rescue Curl::Err::TimeoutError, Timeout::Error -- cgit v1.2.1