We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8df76cf + 7603351 commit 2d4b68aCopy full SHA for 2d4b68a
1 file changed
bitcoin/core/serialize.py
@@ -75,7 +75,7 @@ def ser_read(f, n):
75
functions.
76
"""
77
if n > MAX_SIZE:
78
- raise SerializationError('Asked to read 0x%x bytes; MAX_SIZE exceeded')
+ raise SerializationError('Asked to read 0x%x bytes; MAX_SIZE exceeded' % n)
79
r = f.read(n)
80
if len(r) < n:
81
raise SerializationTruncationError('Asked to read %i bytes, but only got %i' % (n, len(r)))
0 commit comments