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 06f0c7d + d579757 commit 4bd2462Copy full SHA for 4bd2462
libp2p/utils/varint.py
@@ -68,7 +68,9 @@ async def decode_uvarint_from_stream(reader: Reader) -> int:
68
res = 0
69
for shift in itertools.count(0, 7):
70
if shift > SHIFT_64_BIT_MAX:
71
- raise ParseError("TODO: better exception msg: Integer is too large...")
+ raise ParseError(
72
+ "Varint decoding error: integer exceeds maximum size of 64 bits."
73
+ )
74
75
byte = await read_exactly(reader, 1)
76
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