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:
Michael McCandless 2011-07-06 14:03:54 +00:00
parent b55eeb510d
commit 18cbe7ce70
1 changed files with 1 additions and 1 deletions

View File

@ -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;