Make error message slightly more readable
This commit is contained in:
parent
2b1fefe882
commit
956b077f04
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ impl Error {
|
||||||
|
|
||||||
pub fn at(mut self, index: usize, child: &Content) -> Self {
|
pub fn at(mut self, index: usize, child: &Content) -> Self {
|
||||||
self.reverse_path.push(match child {
|
self.reverse_path.push(match child {
|
||||||
Content::Element(el) => format!("{index}:{}", el.name),
|
Content::Element(el) => format!("{index}[{}]", el.name),
|
||||||
_ => index.to_string(),
|
_ => index.to_string(),
|
||||||
});
|
});
|
||||||
self
|
self
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue