Raise SyntaxError if raw tag is unclosed

This commit is contained in:
Justin Li
2015-06-02 10:56:51 -04:00
parent be2e41e4d5
commit b1ee9129e7
3 changed files with 7 additions and 1 deletions
+2
View File
@@ -11,6 +11,8 @@ module Liquid
end
@body << token unless token.empty?
end
raise SyntaxError.new(@options[:locale].t("errors.syntax.tag_never_closed".freeze, block_name: block_name))
end
def render(_context)