mirror of https://github.com/apache/lucene.git
clarify exception message
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1143420 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b55eeb510d
commit
18cbe7ce70
|
@ -428,7 +428,7 @@ public class FST<T> {
|
|||
final int sizeNeeded = fixedArrayStart + node.numArcs * maxBytesPerArc;
|
||||
bytes = ArrayUtil.grow(bytes, sizeNeeded);
|
||||
if (maxBytesPerArc > 255) {
|
||||
throw new IllegalStateException("max arc size is too large (" + maxBytesPerArc + ")");
|
||||
throw new IllegalStateException("max arc size is too large (" + maxBytesPerArc + "); disable array arcs by calling Builder.setAllowArrayArcs(false)");
|
||||
}
|
||||
bytes[fixedArrayStart-1] = (byte) maxBytesPerArc;
|
||||
|
||||
|
|
Loading…
Reference in New Issue