introduce unhandled liquid exception

check arity
This commit is contained in:
Richard Monette
2016-10-28 09:40:44 -04:00
parent 43e59796f6
commit a549d289d7
2 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -93,10 +93,10 @@ module Liquid
rescue MemoryError => e
raise e
rescue UndefinedVariable, UndefinedDropMethod, UndefinedFilter => e
context.handle_error(e, token.line_number)
context.handle_error(e, token.line_number, token.raw)
output << nil
rescue ::StandardError => e
output << context.handle_error(e, token.line_number)
output << context.handle_error(e, token.line_number, token.raw)
end
end