Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhmather committed Nov 14, 2015
1 parent bc24077 commit f9b9e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jpake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def pascal(s):
"""Encode a byte string as a pascal string with a big-endian header
"""
if len(s) >= 2**16:
raise ValueError("cannot encode value greater than 2^16")
raise ValueError("cannot encode value greater than (2^8)^(2^16)")
return len(s).to_bytes(2, 'big') + s

s = b"".join((
Expand Down

0 comments on commit f9b9e7a

Please sign in to comment.