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, children,
} => { } => {
if *tag != "div" { 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 { Self::Node {
children: children.iter().map(Self::from_dioxus).collect(), children: children.iter().map(Self::from_dioxus).collect(),