Skip to content

Commit

Permalink
PDFBOX-5660: improve exception message
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1923205 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed Jan 18, 2025
1 parent 4aa786d commit 6224db4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,9 @@ else if (Character.isValidCodePoint(codePoint))
{
source = "?";
}
throw new IllegalStateException("could not find the glyphId for the character: " + source);
throw new IllegalStateException("could not find the glyphId for the character: " +
source + ", codePoint: " + codePoint +
" (0x" + Integer.toHexString(codePoint).toUpperCase() + ")");
}
originalGlyphIds.add(glyphId);
}
Expand Down

0 comments on commit 6224db4

Please sign in to comment.