put line number in parentheses

This commit is contained in:
Florian Weingarten
2014-09-05 14:12:30 +00:00
parent 27c1019385
commit 17cc8fdbb3
4 changed files with 13 additions and 16 deletions
+2 -2
View File
@@ -92,8 +92,8 @@ module Liquid
end
def handle_error(e, token)
e = Liquid::Error.error_with_line_number(e, token)
def handle_error(e, token=nil)
e = Liquid::Error.error_from_token(e, token) if token
errors.push(e)
raise if exception_handler && exception_handler.call(e)
Liquid::Error.render(e)