瀏覽代碼

Raise non TLS exception to help debug

new-scoring
aeris 2 年之前
父節點
當前提交
a8057ce1ec
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      lib/cryptcheck.rb

+ 3
- 1
lib/cryptcheck.rb 查看文件

@@ -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…
取消
儲存