diff --git a/src/generators/dom/visitors/Element/getStaticAttributeValue.ts b/src/generators/dom/visitors/Element/getStaticAttributeValue.ts index 42b5ea6ce9..490a243516 100644 --- a/src/generators/dom/visitors/Element/getStaticAttributeValue.ts +++ b/src/generators/dom/visitors/Element/getStaticAttributeValue.ts @@ -8,7 +8,7 @@ export default function getStaticAttributeValue(node: Node, name: string) { if (attribute.value.length !== 1 || attribute.value[0].type !== 'Text') { // TODO catch this in validation phase, give a more useful error (with location etc) - throw new Error(`'${name} must be a static attribute`); + throw new Error(`'${name}' must be a static attribute`); } return attribute.value[0].data;