Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed no-block-or-string html_escape error message

  • Loading branch information...
commit a04a9b877ca1b4580e2b6e28db6ece4a37bb82c6 1 parent 19b257e
Denis Defreyne ddfreyne authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/nanoc3/helpers/html_escape.rb
3  lib/nanoc3/helpers/html_escape.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.