Permalink
Browse files

Fix error in error message. Was causing the actual error message to n…

…ot be shown.
  • Loading branch information...
1 parent f2509bf commit 48fb63fbbf558df85c15bfe962c265c72f3253fa @hiddentao hiddentao committed Mar 9, 2014
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 48fb63f

Please sign in to comment.