mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Raise liquid argument error instead of ruby argument
Wrong number of arguments for filter invocation now raises Liuqid::ArgumentError but not ::ArgumentError
This commit is contained in:
@@ -52,6 +52,8 @@ module Liquid
|
||||
else
|
||||
args.first
|
||||
end
|
||||
rescue ::ArgumentError => e
|
||||
raise Liquid::ArgumentError.new(e.message)
|
||||
end
|
||||
|
||||
def invokable?(method)
|
||||
|
||||
Reference in New Issue
Block a user