Make error message slightly more readable

This commit is contained in:
Joscha 2024-11-27 00:21:06 +01:00
parent 2b1fefe882
commit 956b077f04

View file

@ -31,7 +31,7 @@ impl Error {
pub fn at(mut self, index: usize, child: &Content) -> Self {
self.reverse_path.push(match child {
Content::Element(el) => format!("{index}:{}", el.name),
Content::Element(el) => format!("{index}[{}]", el.name),
_ => index.to_string(),
});
self