Improve error message for malformed highlight tags

This commit is contained in:
Leonard Ehrenfried 2013-01-29 12:16:33 +01:00
parent b4bea4a586
commit a7f0d04bda
1 changed files with 7 additions and 1 deletions

View File

@ -30,7 +30,13 @@ module Jekyll
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