Clarify that the error_mode: :warn parse option is only for strict errors

This commit is contained in:
Dylan Thacker-Smith
2021-09-16 10:13:57 -04:00
parent 10e2aa8d5b
commit db106ae058
+1 -1
View File
@@ -63,7 +63,7 @@ when templates are invalid. You can enable this new parser like this:
```ruby
Liquid::Template.error_mode = :strict # Raises a SyntaxError when invalid syntax is used
Liquid::Template.error_mode = :warn # Adds errors to template.errors but continues as normal
Liquid::Template.error_mode = :warn # Adds strict errors to template.errors but continues as normal
Liquid::Template.error_mode = :lax # The default mode, accepts almost anything.
```