Permalink
Browse files

Add clearer message about Textile and Maruku filters' move to haml-co…

…ntrib

Addresses issue #557
  • Loading branch information...
1 parent bf9cd14 commit 6ee1cc4fbdb5f96dfd547260b9c1a845e0f4bdd0 @norman norman committed Jun 11, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/haml/compiler.rb
View
@@ -258,7 +258,12 @@ def compile_doctype
def compile_filter
unless filter = Filters.defined[@node.value[:name]]
- raise Error.new("Filter \"#{@node.value[:name]}\" is not defined.", @node.line - 1)
+ name = @node.value[:name]
+ if ["maruku", "textile"].include?(name)
+ raise Error.new("To use the \"#{name}\" filter, please install the haml-contrib gem.", @node.line - 1)
+ else
+ raise Error.new("Filter \"#{name}\" is not defined.", @node.line - 1)
+ end
end
filter.internal_compile(self, @node.value[:text])
end

0 comments on commit 6ee1cc4

Please sign in to comment.