Preserve KRA internal DTD error wording

This commit is contained in:
Dylan M. Taylor committed 2026-11-13 08:02:45 -05:00
1 parent 3acb181c87
commit 44dc2d8755
1 file changed
+1 -1
+1 -1
View File
@@ -248,7 +248,7 @@ impl Image {
..craft_xml::Options::local().strict()
};
let root = options.parse(maindoc).map_err(|e| match e {
craft_xml::Error::Doctype => invalid("maindoc.xml: an internal DTD is not accepted"),
craft_xml::Error::Doctype => invalid("maindoc.xml: a document type with an internal DTD subset is not accepted"),
other => invalid(format!("maindoc.xml: {other}")),
})?;
let image = root.child("IMAGE").ok_or_else(|| invalid("maindoc.xml has no IMAGE"))?;