mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-11 07:23:03 +00:00
untestable/thttpclient_ssl: catch errors caused by the bad catergory
Previously the errors caused by `SSL_shutdown()` masked these, so now we catch them.
This commit is contained in:
@@ -106,7 +106,7 @@ template evaluate(exception_msg: string, category: Category, desc: string) =
|
||||
exception_msg == "SSL Certificate check failed." or
|
||||
exception_msg.contains("certificate verify failed") or
|
||||
exception_msg.contains("key too small") or
|
||||
exception_msg.contains "shutdown while in init", exception_msg
|
||||
exception_msg.contains "alert handshake failure", exception_msg
|
||||
|
||||
else:
|
||||
# this is unexpected
|
||||
|
||||
Reference in New Issue
Block a user