diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-24 09:53:25 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-24 09:53:25 +0000 |
commit | 576378b36f473a544c6014080146332ac2d271db (patch) | |
tree | 83d6404c29e8cdf9cba95f5dae4fe2eb17d44c31 /lib/custodian | |
parent | 9cc38d1a98b462365a096a28762bead9166dcf18 (diff) |
Alert if SSL-validation fails.
Diffstat (limited to 'lib/custodian')
-rw-r--r-- | lib/custodian/protocoltest/http.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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 |