From: Dominik Stadler Date: Sat, 26 Oct 2019 05:26:44 +0000 (+0000) Subject: Adjust an error message slightly X-Git-Tag: REL_4_1_2~164 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2dad9b754328bae207c0468d3a9b9116fe5bd514;p=poi.git Adjust an error message slightly git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1868980 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/poi/hssf/model/InternalWorkbook.java b/src/java/org/apache/poi/hssf/model/InternalWorkbook.java index f397ed0fbb..8b0ac7569e 100644 --- a/src/java/org/apache/poi/hssf/model/InternalWorkbook.java +++ b/src/java/org/apache/poi/hssf/model/InternalWorkbook.java @@ -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);