Skip to content

Commit

Permalink
Merge pull request #785 from lenniboy/master
Browse files Browse the repository at this point in the history
Improve debugability of error message for a malformed highlight tag
  • Loading branch information
parkr committed Feb 27, 2013
2 parents 3fbb615 + a7f0d04 commit bd9a112
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/jekyll/tags/highlight.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ def initialize(tag_name, markup, tokens)
end
end
else
raise SyntaxError.new("Syntax Error in 'highlight' - Valid syntax: highlight <lang> [linenos]")
raise SyntaxError.new <<-eos
Syntax Error in tag 'highlight' while parsing the following markup:
#{markup}
Valid syntax: highlight <lang> [linenos]
eos
end
end

Expand Down

0 comments on commit bd9a112

Please sign in to comment.