mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Fixed error handling code
This commit is contained in:
parent
266e15fa9c
commit
a76fa41321
@ -109,7 +109,7 @@ module.exports = function transform(el, context) {
|
||||
let attrName = attr.name;
|
||||
if (!attrName) {
|
||||
if (!node.addDynamicAttributes) {
|
||||
node.addError('Node does not support the "attrs" attribute');
|
||||
context.addError(el, 'Node does not support the "attrs" attribute');
|
||||
} else {
|
||||
node.addDynamicAttributes(attr.value);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user