Raise FilterNotFound on use of non-existent filter

This commit is contained in:
Brian Candler
2009-06-06 16:32:20 +01:00
parent f29b9335c5
commit 01c25a11a3
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ module Liquid
if strainer.respond_to?(method)
strainer.__send__(method, *args)
else
args.first
raise FilterNotFound, "Filter '#{method}' not found"
end
end