Tweak error message

This commit is contained in:
JMS55 2023-12-10 12:57:00 -08:00
parent 9033473974
commit 54c407ba3e

View file

@ -93,7 +93,9 @@ impl BevyTemplateNode {
children,
} => {
if *tag != "div" {
panic!("Unsupported bevy_dioxus tag {tag}. Only `div` is supported.");
panic!(
"Encountered unsupported bevy_dioxus tag `{tag}`. Only `div` is supported."
);
}
Self::Node {
children: children.iter().map(Self::from_dioxus).collect(),