From 7c2357919738ae2cf874579850408594f5552c60 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 6 Jun 2017 10:07:36 -0400 Subject: [PATCH] typo --- src/generators/dom/visitors/Element/getStaticAttributeValue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;