diff options
author | Maximilian Hils <git@maximilianhils.com> | 2014-09-08 18:38:05 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2014-09-08 18:38:05 +0200 |
commit | f90ea89e69b3ff9fb612b0ee6024f5546f198ca6 (patch) | |
tree | a209cba16d45982b6f81e126bd3b6a215a8fc84e /netlib | |
parent | 07990fdcc231f28c7ce3b3486cf7b423f77dcc67 (diff) | |
download | mitmproxy-f90ea89e69b3ff9fb612b0ee6024f5546f198ca6.tar.gz mitmproxy-f90ea89e69b3ff9fb612b0ee6024f5546f198ca6.tar.bz2 mitmproxy-f90ea89e69b3ff9fb612b0ee6024f5546f198ca6.zip |
more verbose errors
Diffstat (limited to 'netlib')
-rw-r--r-- | netlib/tcp.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py index 2704eeae..0a3c4ff9 100644 --- a/netlib/tcp.py +++ b/netlib/tcp.py @@ -308,7 +308,7 @@ class TCPClient(_Connection): try: self.connection.do_handshake() except SSL.Error, v: - raise NetLibError("SSL handshake error: %s"%str(v)) + raise NetLibError("SSL handshake error: %s"%repr(v)) self.cert = certutils.SSLCert(self.connection.get_peer_certificate()) self.rfile.set_descriptor(self.connection) self.wfile.set_descriptor(self.connection) @@ -417,7 +417,7 @@ class BaseHandler(_Connection): try: self.connection.do_handshake() except SSL.Error, v: - raise NetLibError("SSL handshake error: %s"%str(v)) + raise NetLibError("SSL handshake error: %s"%repr(v)) self.rfile.set_descriptor(self.connection) self.wfile.set_descriptor(self.connection) |