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.
2 parents 719246c + 311b750 commit d579757Copy full SHA for d579757
libp2p/utils/varint.py
@@ -44,7 +44,9 @@ async def decode_uvarint_from_stream(reader: Reader) -> int:
44
res = 0
45
for shift in itertools.count(0, 7):
46
if shift > SHIFT_64_BIT_MAX:
47
- raise ParseError("TODO: better exception msg: Integer is too large...")
+ raise ParseError(
48
+ "Varint decoding error: integer exceeds maximum size of 64 bits."
49
+ )
50
51
byte = await read_exactly(reader, 1)
52
value = byte[0]
newsfragments/760.docs.rst
@@ -0,0 +1 @@
1
+Improve error message under the function decode_uvarint_from_stream in libp2p/utils/varint.py file
0 commit comments