mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 19:00:39 -07:00
Move the syntax error rescue for adding error line numbers.
This commit is contained in:
@@ -120,9 +120,6 @@ module Liquid
|
||||
@root = Document.parse(tokenize(source), parse_context)
|
||||
@warnings = parse_context.warnings
|
||||
self
|
||||
rescue SyntaxError => e
|
||||
e.line_number ||= parse_context.line_number
|
||||
raise
|
||||
end
|
||||
|
||||
def registers
|
||||
|
||||
Reference in New Issue
Block a user