mirror of https://github.com/apache/lucene.git
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:
parent
1231915417
commit
abaa5f6698
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue