]> source.dussan.org Git - poi.git/commitdiff
Adjust an error message slightly
authorDominik Stadler <centic@apache.org>
Sat, 26 Oct 2019 05:26:44 +0000 (05:26 +0000)
committerDominik Stadler <centic@apache.org>
Sat, 26 Oct 2019 05:26:44 +0000 (05:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868980 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/model/InternalWorkbook.java

index f397ed0fbb77e5072c4dbc0652cfe7b904f59563..8b0ac7569eef33bb4cf0542eeb5716c6a47d3f08 100644 (file)
@@ -447,8 +447,7 @@ public final class InternalWorkbook {
         }
         if (index > (numfonts - 1)) {
             throw new ArrayIndexOutOfBoundsException(
-            "There are only " + numfonts
-            + " font records, you asked for " + idx);
+            "There are only " + numfonts + " font records, but you asked for index " + idx);
         }
 
         return ( FontRecord ) records.get((records.getFontpos() - (numfonts - 1)) + index);