Skip to content

Commit 4114541

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xmpbox/src/main/java/org/apache/xmpbox/xml/DomXmpParser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,8 @@ private AbstractStructuredType parseLiDescription(XMPMetadata xmp, QName parentQ
799799
{
800800
// PDFBOX-5649
801801
throw new XmpParsingException(ErrorType.NoType,
802-
"Property '" + firstChildQName.getLocalPart() + "' not defined in " + firstChildQName.getNamespaceURI());
802+
"Property '" + firstChildQName.getPrefix() + ":" + firstChildQName.getLocalPart() +
803+
"' not defined in " + firstChildQName.getNamespaceURI());
803804
}
804805
Types tt = ctype.type();
805806
AbstractStructuredType ast = instanciateStructured(tm, tt, parentQName.getLocalPart(), firstLiDescriptionElementChild.getNamespaceURI());

0 commit comments

Comments
 (0)