Merge pull request #785 from lenniboy/master
Improve debugability of error message for a malformed highlight tag
This commit is contained in:
commit
bd9a112ff1
|
@ -30,7 +30,13 @@ module Jekyll
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue