Merge pull request #785 from lenniboy/master

Improve debugability of error message for a malformed highlight tag
This commit is contained in:
Parker Moore 2013-02-26 16:58:36 -08:00
commit bd9a112ff1
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