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:
Bogdan Gusiev
2014-02-21 22:12:11 +02:00
parent fa179e811d
commit f23e69d565
3 changed files with 10 additions and 0 deletions
+2
View File
@@ -52,6 +52,8 @@ module Liquid
else
args.first
end
rescue ::ArgumentError => e
raise Liquid::ArgumentError.new(e.message)
end
def invokable?(method)