summaryrefslogtreecommitdiff
path: root/kafka/client.py
diff options
context:
space:
mode:
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 #