Commit 29513b73 authored by Jeremy Hylton's avatar Jeremy Hylton

Explain more of what went wrong in failure case.

parent 29007528
......@@ -188,8 +188,9 @@ def check_drec(path, file, pos, tpos, tid):
file.seek(vlen, 1) # skip the version data
if tloc != tpos:
raise FormatError("%s data record exceeds transaction record"
"at %s" % (path, pos))
raise FormatError("%s data record exceeds transaction record "
"at %s: tloc %d != tpos %d" %
(path, pos, tloc, tpos))
pos = pos + dlen
# 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