mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Marko v3: Proper error message for unmatched nested tag
This commit is contained in:
parent
5a3796899f
commit
0d6386198a
@ -127,6 +127,10 @@ class CustomTag extends HtmlElement {
|
||||
|
||||
if (isNestedTag) {
|
||||
let parentTagNode = getNestedTagParentNode(this, parentTagName);
|
||||
if (!parentTagNode) {
|
||||
codegen.addError('Invalid usage of the <' + this.tagName + '> nested tag. Tag not nested within a <' + parentTagName + '> tag.');
|
||||
return;
|
||||
}
|
||||
parentTagVar = parentTagNode.data.nestedTagVar;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user