From 44dc2d8755bba1544095bdcfe6bfa09f152c959c Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Fri, 13 Nov 2026 08:02:45 -0500 Subject: [PATCH] Preserve KRA internal DTD error wording --- crates/kra/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/kra/src/lib.rs b/crates/kra/src/lib.rs index 71b7b8ff8..f59bd95cd 100644 --- a/crates/kra/src/lib.rs +++ b/crates/kra/src/lib.rs @@ -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"))?;