Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
0069a44
)
THRIFT-1749 Python TSSLSocket error handling obscures actual error
author
Roger Meier
<roger@apache.org>
Thu, 8 Nov 2012 23:11:14 +0000
(23:11 +0000)
committer
Roger Meier
<roger@apache.org>
Thu, 8 Nov 2012 23:11:14 +0000
(23:11 +0000)
Patch: Tyler Hobbs
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1407311
13f79535
-47bb-0310-9956-
ffa450edef68
lib/py/src/transport/TSSLSocket.py
patch
|
blob
|
history
diff --git
a/lib/py/src/transport/TSSLSocket.py
b/lib/py/src/transport/TSSLSocket.py
index
e0ff4f9
..
7bf28aa
100644
(file)
--- a/
lib/py/src/transport/TSSLSocket.py
+++ b/
lib/py/src/transport/TSSLSocket.py
@@
-94,9
+94,10
@@
class TSSLSocket(TSocket.TSocket):
break
except socket.error as e:
if self._unix_socket:
- message = 'Could not connect to secure socket %s' % self._unix_socket
+ message = 'Could not connect to secure socket %s: %s' \
+ % (self._unix_socket, e)
else:
- message = 'Could not connect to %s:%d
' % (self.host, self.port
)
+ message = 'Could not connect to %s:%d
: %s' % (self.host, self.port, e
)
raise TTransportException(type=TTransportException.NOT_OPEN,
message=message)
if self.validate: