Skip to content

Commit 6224db4

Browse files
committed
PDFBOX-5660: improve exception message
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1923205 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4aa786d commit 6224db4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDAbstractContentStream.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,9 @@ else if (Character.isValidCodePoint(codePoint))
16931693
{
16941694
source = "?";
16951695
}
1696-
throw new IllegalStateException("could not find the glyphId for the character: " + source);
1696+
throw new IllegalStateException("could not find the glyphId for the character: " +
1697+
source + ", codePoint: " + codePoint +
1698+
" (0x" + Integer.toHexString(codePoint).toUpperCase() + ")");
16971699
}
16981700
originalGlyphIds.add(glyphId);
16991701
}

0 commit comments

Comments
 (0)