Permalink
Browse files

Merge pull request #1449 from hiddentao/closing_tag_bug

Fix error in error message. Was causing the actual error message to not ...
  • Loading branch information...
ForbesLindesay committed Mar 9, 2014
2 parents f2509bf + 48fb63f commit d8a1e4ff9b4df9383fe051781ae14a7668e94201
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/parser.js
View
@@ -768,7 +768,7 @@ Parser.prototype = {
if (tag.selfClosing
&& ['newline', 'outdent', 'eos'].indexOf(this.peek().type) === -1
&& (this.peek().type !== 'text' || !/^\s*$/.test(this.peek().val))) {
- throw new Error(name + ' is self closing and should not have content.');
+ throw new Error(tag.name + ' is self closing and should not have content.');
}
// (text | code | ':')?

0 comments on commit d8a1e4f

Please sign in to comment.