pull/628/head
Rich Harris 8 years ago committed by GitHub
parent 5c8ef93ff7
commit 7c23579197

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

Loading…
Cancel
Save