summaryrefslogtreecommitdiff
path: root/kafka/protocol/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'kafka/protocol/types.py')
-rw-r--r--kafka/protocol/types.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kafka/protocol/types.py b/kafka/protocol/types.py
index d5e446a..87b810c 100644
--- a/kafka/protocol/types.py
+++ b/kafka/protocol/types.py
@@ -10,7 +10,7 @@ def _pack(f, value):
return pack(f, value)
except error as e:
raise ValueError("Error encountered when attempting to convert value: "
- "{} to struct format: '{}', hit error: {}"
+ "{!r} to struct format: '{}', hit error: {}"
.format(value, f, e))
@@ -20,7 +20,7 @@ def _unpack(f, data):
return value
except error as e:
raise ValueError("Error encountered when attempting to convert value: "
- "{} to struct format: '{}', hit error: {}"
+ "{!r} to struct format: '{}', hit error: {}"
.format(value, f, e))