Explorar el Código

Raise non TLS exception to help debug

new-scoring
aeris hace 2 años
padre
commit
a8057ce1ec
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3
    1
      lib/cryptcheck.rb

+ 3
- 1
lib/cryptcheck.rb Ver fichero

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

Loading…
Cancelar
Guardar