Update error handling for keeping backward-compatibility on error messages in the render tag

This commit is contained in:
Guilherme Carreiro
2025-10-30 12:00:44 +01:00
committed by Guilherme Carreiro
parent 12fd93fbe2
commit a16ec56a40
3 changed files with 5 additions and 7 deletions
-2
View File
@@ -34,5 +34,3 @@
render: "Argument error in tag 'render' - Dynamically chosen templates are not allowed"
disabled:
tag: "usage is not allowed in this context"
file_system:
includes: "This liquid context does not allow includes"
+1 -1
View File
@@ -58,7 +58,7 @@ module Liquid
template_name = partial.name
context_variable_name = @alias_name || template_name.split('/').last
else
raise Liquid::ArgumentError, parse_context.locale.t("errors.file_system.includes")
raise ::ArgumentError
end
render_partial_func = ->(var, forloop) {