Skip to content

Commit 3b3961b

Browse files
committed
Use lax mode by default so nothing breaks
1 parent 8ca0098 commit 3b3961b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/liquid/template.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def error_mode=(mode)
4343
end
4444

4545
def error_mode
46-
@error_mode || :warn
46+
@error_mode || :lax
4747
end
4848

4949
# Pass a module with filter methods which should be available

performance/profile.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
[RubyProf::FlatPrinter, RubyProf::GraphHtmlPrinter, RubyProf::CallTreePrinter, RubyProf::DotPrinter].each do |klass|
1515
filename = (ENV['TMP'] || '/tmp') + (klass.name.include?('Html') ? "/liquid.#{klass.name.downcase}.html" : "/callgrind.liquid.#{klass.name.downcase}.txt")
1616
filename.gsub!(/:+/, '_')
17-
File.open(filename, "w+") { |fp| klass.new(results).print(fp, :print_file => true) }
17+
File.open(filename, "w+") { |fp| klass.new(results).print(fp, :print_file => true, :min_percent => 3) }
1818
$stderr.puts "wrote #{klass.name} output to #{filename}"
1919
end

0 commit comments

Comments
 (0)