Skip to content

Commit cce1867

Browse files
committed
ConnectionError is special
1 parent d8cbe1a commit cce1867

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

elasticsearch/exceptions.py

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ def __str__(self):
3131

3232
class ConnectionError(TransportError):
3333
""" Error raised when there was an exception while talking to ES. """
34+
def __str__(self):
35+
return 'ConnectionError(%s) caused by: %s(%s)' % (
36+
self.error, self.info.__class__.__name__, self.info)
3437

3538

3639
class NotFoundError(TransportError):

0 commit comments

Comments
 (0)