diff --git a/lucene/src/java/org/apache/lucene/util/fst/FST.java b/lucene/src/java/org/apache/lucene/util/fst/FST.java index 44cd44aff55..7fa3339a256 100644 --- a/lucene/src/java/org/apache/lucene/util/fst/FST.java +++ b/lucene/src/java/org/apache/lucene/util/fst/FST.java @@ -428,7 +428,7 @@ public class FST { 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;