Commit fc5fb55f authored by Jeremy Hylton's avatar Jeremy Hylton

Explain more of what went wrong in failure case.

parent 0bca9f86
...@@ -188,8 +188,9 @@ def check_drec(path, file, pos, tpos, tid): ...@@ -188,8 +188,9 @@ def check_drec(path, file, pos, tpos, tid):
file.seek(vlen, 1) # skip the version data file.seek(vlen, 1) # skip the version data
if tloc != tpos: if tloc != tpos:
raise FormatError("%s data record exceeds transaction record" raise FormatError("%s data record exceeds transaction record "
"at %s" % (path, pos)) "at %s: tloc %d != tpos %d" %
(path, pos, tloc, tpos))
pos = pos + dlen pos = pos + dlen
# XXX is the following code necessary? # XXX is the following code necessary?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment