From 757cbf1b8cb93a8186d53d623a4723e5c71e8f8b Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Fri, 12 Jul 2024 04:00:42 -0700 Subject: [PATCH] Add simple panic messages Fixes #200 --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 45ba950..7576c54 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1788,8 +1788,8 @@ impl<'a> Builder<'a> { .is_none()); } for tag_name in &self.clean_content_tags { - assert!(!self.tags.contains(tag_name)); - assert!(!self.tag_attributes.contains_key(tag_name)); + assert!(!self.tags.contains(tag_name), "{tag_name} appears in clean_content_tags and in tags at the same time"); + assert!(!self.tag_attributes.contains_key(tag_name), "{tag_name} appears in clean_content_tags and in tag_attributes at the same time"); } let body = { let children = dom.document.children.borrow();