Permalink
Browse files

fixed no-block-or-string html_escape error message

  • Loading branch information...
1 parent 19b257e commit a04a9b877ca1b4580e2b6e28db6ece4a37bb82c6 @ddfreyne ddfreyne committed Jun 13, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/nanoc3/helpers/html_escape.rb
@@ -43,7 +43,8 @@ def html_escape(string=nil, &block)
gsub('>', '>').
gsub('"', '"')
else
- raise RuntimeError, "TODO write me"
+ raise RuntimeError, "The #html_escape or #h function needs either a " \
+ "string or a block to HTML-escape, but neither a string nor a block was given"
end
end

0 comments on commit a04a9b8

Please sign in to comment.