Skip to content
Browse files

Slightly improve some error msgs.

  • Loading branch information...
1 parent 31424ab commit e78a99bf3cb74e7216bee5231bffd7b5b7d4e649 Trevor committed May 10, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 TACKpy/tack_structures.py
View
6 TACKpy/tack_structures.py
@@ -237,17 +237,17 @@ def parse(self, b, verifyFunc=ecdsa256Verify):
tackLen = p.getInt(1)
if tackLen:
if tackLen != TACK.length:
- raise SyntaxError("TACK wrong size")
+ raise SyntaxError("TACK wrong size: %d" % tackLen)
else:
b2 = p.getBytes(tackLen)
self.tack = TACK()
self.tack.parse(b2, verifyFunc)
sigsLen = p.getInt(2)
if sigsLen >1024:
- raise SyntaxError("break_sigs too large")
+ raise SyntaxError("break_sigs too large: %d" % sigsLen)
elif sigsLen % TACK_Break_Sig.length != 0:
- raise SyntaxError("break sigs wrong size")
+ raise SyntaxError("break sigs wrong size: %d" % sigsLen)
else:
self.break_sigs = []
b2 = p.getBytes(sigsLen)

0 comments on commit e78a99b

Please sign in to comment.
Something went wrong with that request. Please try again.