Accurate description of TransportError.info

Fixes #710, thank you, @fbacchella, for the report!
This commit is contained in:
Honza Král
2018-01-12 17:35:07 +01:00
parent 1cae2b7eb0
commit 57ec404ba3
+4 -1
View File
@@ -45,7 +45,10 @@ class TransportError(ElasticsearchException):
@property
def info(self):
""" Dict of returned error info from ES, where available. """
"""
Dict of returned error info from ES, where available, underlying
exception when not.
"""
return self.args[2]
def __str__(self):