File tree 2 files changed +5
-2
lines changed
io/js/src/main/scala/fs2/io/net
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,8 @@ private class JavaScriptUnknownException(cause: js.JavaScriptException)
87
87
object UnknownHostException {
88
88
private [io] def unapply (cause : js.JavaScriptException ): Option [UnknownHostException ] =
89
89
cause match {
90
- case js.JavaScriptException (error : js.Error ) if error.message.contains(" ENOTFOUND" ) =>
90
+ case js.JavaScriptException (error : js.Error )
91
+ if error.message.contains(" ENOTFOUND" ) || error.message.contains(" EAI_AGAIN" ) =>
91
92
Some (new JavaScriptUnknownException (cause))
92
93
case _ => None
93
94
}
Original file line number Diff line number Diff line change @@ -33,7 +33,9 @@ private class JavaScriptSSLException(cause: js.JavaScriptException)
33
33
object SSLException {
34
34
private [io] def unapply (cause : js.JavaScriptException ): Option [SSLException ] = cause match {
35
35
case js.JavaScriptException (error : js.Error )
36
- if error.message.contains(" TLS" ) || error.message.contains(" SSL" ) =>
36
+ if error.message.contains(" TLS" ) || error.message.contains(
37
+ " SSL"
38
+ ) || error.message.toLowerCase.contains(" certificate" ) =>
37
39
Some (new JavaScriptSSLException (cause))
38
40
case _ => None
39
41
}
You can’t perform that action at this time.
0 commit comments