Fixed error handling code

This commit is contained in:
Patrick Steele-Idem 2016-02-02 15:56:13 -07:00
parent 266e15fa9c
commit a76fa41321

View File

@ -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);
}