when we do a quick truncation check, give a hint to the root cause

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1652335 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2015-01-16 03:04:20 +00:00
parent 1231915417
commit abaa5f6698
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ public final class CodecUtil {
final int magic = in.readInt();
if (magic != FOOTER_MAGIC) {
throw new CorruptIndexException("codec footer mismatch: actual footer=" + magic + " vs expected footer=" + FOOTER_MAGIC, in);
throw new CorruptIndexException("codec footer mismatch (file truncated?): actual footer=" + magic + " vs expected footer=" + FOOTER_MAGIC, in);
}
final int algorithmID = in.readInt();