mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-14 22:42:46 +00:00
Preserve KRA internal DTD error wording
This commit is contained in:
1 file changed
+1
-1
@@ -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"))?;
|
||||
|
||||
Reference in new issue
Block a user