Improve disabled tag error output

This commit is contained in:
Mike Angell
2019-09-24 09:05:22 +10:00
parent 695378d8a4
commit 5e9b0bd3e9
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -26,4 +26,4 @@
argument:
include: "Argument error in tag 'include' - Illegal template name"
disabled:
tag: "usage has been disabled in this context."
tag: "usage is not allowed in this context"
+1 -1
View File
@@ -3,7 +3,7 @@
module Liquid
class Render < Tag
SYNTAX = /(#{QuotedString})#{QuotedFragment}*/o
DISABLED_TAGS = %w(include)
DISABLED_TAGS = %w(include).freeze
attr_reader :template_name_expr, :attributes