Move the syntax error rescue for adding error line numbers.

This commit is contained in:
Dylan Thacker-Smith
2015-07-09 11:25:05 -04:00
parent bde14a650d
commit 14416b3c49
2 changed files with 10 additions and 10 deletions
-3
View File
@@ -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