lib/liquid/block_body.rb in liquid-4.0.0.rc1 vs lib/liquid/block_body.rb in liquid-4.0.0.rc2

- old
+ new

@@ -74,9 +74,12 @@ unless token.is_a?(Block) && token.blank? output << node_output end rescue MemoryError => e raise e + rescue UndefinedVariable, UndefinedDropMethod, UndefinedFilter => e + context.handle_error(e, token.line_number) + output << nil rescue ::StandardError => e output << context.handle_error(e, token.line_number) end end