diff --git a/lib/IO/Socket/SSL.pm6 b/lib/IO/Socket/SSL.pm6 index cfa617f..aceae7e 100644 --- a/lib/IO/Socket/SSL.pm6 +++ b/lib/IO/Socket/SSL.pm6 @@ -73,6 +73,9 @@ method !initialize { $!ssl.set-connect-state; $!ssl.connect; } + else { + die "Failed to connect"; + } } elsif $!localhost && $!localport { # server stuff TODO