Include the pack index file name when reporting a bad header
commitd58d3877616513315e4a0b85197971428fd16bc6
authorShawn O. Pearce <spearce@spearce.org>
Wed, 5 Mar 2008 23:01:19 +0000 (5 18:01 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 7 Apr 2008 03:25:55 +0000 (6 23:25 -0400)
tree9ec5d3d007e665f1fe6009c704340b47d2070239
parent3f0625dc560e09678975b6aa4f48f03eabe2d9d3
Include the pack index file name when reporting a bad header

If the file length doesn't match what we expect this may be
an invalid .idx file for a pack, or it is a version of the
index we don't support yet in jgit (such as index v2).  It
can be helpful to know exactly which file is problematic.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.jgit/src/org/spearce/jgit/lib/PackFile.java