From a2a6a1efe9503cdeece633004e2af1d1ab286127 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Sat, 24 Nov 2012 09:53:25 +0000 Subject: Alert if SSL-validation fails. --- lib/custodian/protocoltest/http.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/custodian/protocoltest/http.rb') diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb index 475b335..11f4bff 100644 --- a/lib/custodian/protocoltest/http.rb +++ b/lib/custodian/protocoltest/http.rb @@ -129,6 +129,9 @@ module Custodian c.perform @status = c.response_code @content = c.body_str + rescue Curl::Err::SSLCACertificateError => x + @error = "SSL-Validation error" + return false rescue Curl::Err::TimeoutError @error = "Timed out fetching page." return false -- cgit v1.2.1