We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04fb37f commit 68a416aCopy full SHA for 68a416a
kafka/protocol/types.py
@@ -8,16 +8,20 @@
8
def _pack(f, value):
9
try:
10
return pack(f, value)
11
- except error:
12
- raise ValueError(error)
+ except error as e:
+ raise ValueError("Error encountered when attempting to convert value: "
13
+ "{} to struct format: '{}', hit error: {}"
14
+ .format(value, f, e))
15
16
17
def _unpack(f, data):
18
19
(value,) = unpack(f, data)
20
return value
21
22
23
24
25
26
27
class Int8(AbstractType):
0 commit comments