Browse Source

Raise non TLS exception to help debug

new-scoring
aeris 2 years ago
parent
commit
a8057ce1ec
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      lib/cryptcheck.rb

+ 3
- 1
lib/cryptcheck.rb View File

@@ -102,7 +102,9 @@ module CryptCheck
end
end
rescue => e
e = "Too long analysis (max #{MAX_ANALYSIS_DURATION.humanize})" if e.message == 'execution expired'
e = Tls::Server::TLSException.new "Too long analysis (max #{MAX_ANALYSIS_DURATION.humanize})" \
if e.message == 'execution expired'
raise unless e.is_a? Tls::Server::TLSException
Logger.error e
[key, AnalysisFailure.new(e)]
end

Loading…
Cancel
Save