diff options
author | Steve Kemp <steve@steve.org.uk> | 2016-07-13 12:56:03 +0300 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2016-07-13 12:56:03 +0300 |
commit | f8d1c4d00eed366c3d95b408258ce4ab80663dea (patch) | |
tree | e016d06291bf5c79e5a55945dee3a16ac8f76097 /lib | |
parent | f04e2b87aeb6f166283fd1d26b2d6cfcc4b40906 (diff) |
Update error message for validation-failu
Diffstat (limited to 'lib')
-rw-r--r-- | lib/custodian/protocoltest/ssl.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/custodian/protocoltest/ssl.rb b/lib/custodian/protocoltest/ssl.rb index 536879e..3e6ac18 100644 --- a/lib/custodian/protocoltest/ssl.rb +++ b/lib/custodian/protocoltest/ssl.rb @@ -438,8 +438,10 @@ module Custodian puts("SSL Verification succeeded for #{@host}") return Custodian::TestResult::TEST_PASSED elsif result.nil? - puts("SSL Verification returned no result (timeout?) #{@host}") - return Custodian::TestResult::TEST_PASSED + puts("SSL Verification returned no result #{@host}") + @error = "SSL Verification for #{@host} failed - TLS negotiation failure?\n"; + @error += s.errors.join("\n") + return Custodian::TestResult::TEST_FAILED else puts("SSL Verification for #{@host} has failed.") @error = "SSL Verification for #{@host} failed: " |