mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 10:52:48 -07:00
add new TemplateEncodingError
This commit is contained in:
@@ -109,7 +109,7 @@ module Liquid
|
||||
parse_context = configure_options(options)
|
||||
|
||||
unless source.valid_encoding?
|
||||
raise SyntaxError, parse_context.locale.t("errors.syntax.invalid_template_encoding")
|
||||
raise TemplateEncodingError, parse_context.locale.t("errors.syntax.invalid_template_encoding")
|
||||
end
|
||||
|
||||
tokenizer = parse_context.new_tokenizer(source, start_line_number: @line_numbers && 1)
|
||||
|
||||
Reference in New Issue
Block a user