summaryrefslogtreecommitdiff
path: root/kafka/client.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2014-03-21 23:15:28 -0700
committerDana Powers <dana.powers@gmail.com>2014-03-21 23:15:28 -0700
commit9bed11db98387c0d9e456528130b330631dc50af (patch)
tree6c054286a388df1647e3f81a4a85130742ba83ca /kafka/client.py
parente937e3f971f5958c8da6249b08288aafd5ed5bcd (diff)
parenta6fc260f288ac639070783a0f6faa94bd7612c67 (diff)
downloadkafka-python-9bed11db98387c0d9e456528130b330631dc50af.tar.gz
Merge pull request #134 from wizzat/conn_refactorv0.9.0
conn.py performance improvements, make examples work, add another example
Diffstat (limited to 'kafka/client.py')
-rw-r--r--kafka/client.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kafka/client.py b/kafka/client.py
index ab0eb8d..39c89ba 100644
--- a/kafka/client.py
+++ b/kafka/client.py
@@ -5,7 +5,7 @@ from collections import defaultdict
from functools import partial
from itertools import count
-from kafka.common import (ErrorMapping, TopicAndPartition,
+from kafka.common import (ErrorMapping, ErrorStrings, TopicAndPartition,
ConnectionError, FailedPayloadsError,
BrokerResponseError, PartitionUnavailableError,
LeaderUnavailableError,
@@ -199,8 +199,8 @@ class KafkaClient(object):
self.reset_topic_metadata(resp.topic)
raise BrokerResponseError(
- "Request for %s failed with errorcode=%d" %
- (TopicAndPartition(resp.topic, resp.partition), resp.error))
+ "Request for %s failed with errorcode=%d (%s)" %
+ (TopicAndPartition(resp.topic, resp.partition), resp.error, ErrorStrings[resp.error]))
#################
# Public API #