Socket: update logging text to flow better

This commit is contained in:
James Lu 2016-02-23 07:29:16 -08:00
parent aee7ac3583
commit b344126318
1 changed files with 4 additions and 4 deletions

View File

@ -377,8 +377,8 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
except ssl.CertificateError as e:
drivers.log.error(('Certificate validation failed when '
'connecting to %s: %s\n'
'This means someone is doing a man-in-the-middle attack '
'on your connection, or the server\'s certificate is '
'This means either someone is doing a man-in-the-middle '
'attack on your connection, or the server\'s certificate is '
'not in your trusted fingerprints list.')
% (self.irc.network, e.args[0]))
raise ssl.SSLError('Aborting because of failed certificate '
@ -386,8 +386,8 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
except ssl.SSLError as e:
drivers.log.error(('Certificate validation failed when '
'connecting to %s: %s\n'
'This means someone is doing a man-in-the-middle attack '
'on your connection, or because the server\'s '
'This means either someone is doing a man-in-the-middle '
'attack on your connection, or the server\'s '
'certificate is not trusted.')
% (self.irc.network, e.args[1]))
raise ssl.SSLError('Aborting because of failed certificate '