mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 14:44:12 +00:00
include element/attribute in errors
This commit is contained in:
parent
d9ee305575
commit
b761bdb767
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ fn build_node<'a>(
|
|||
});
|
||||
} else {
|
||||
return Err(Error::ParseError(ParseError::new(
|
||||
syn::Error::new(span, "unknown attribute"),
|
||||
syn::Error::new(span, format!("unknown attribute: {}", name)),
|
||||
ctx.location.clone(),
|
||||
)));
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ fn build_node<'a>(
|
|||
}
|
||||
} else {
|
||||
Err(Error::ParseError(ParseError::new(
|
||||
syn::Error::new(el.name.span(), "unknown element"),
|
||||
syn::Error::new(el.name.span(), format!("unknown element: {}", tag)),
|
||||
ctx.location.clone(),
|
||||
)))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue