Change error handling for gist tag: raise exception

This commit is contained in:
maul.esel 2013-09-07 20:15:34 +02:00
parent 7ccb62e524
commit 06fb31544f
1 changed files with 9 additions and 1 deletions

View File

@ -12,7 +12,15 @@ module Jekyll
gist_id, filename = tag_contents[0], tag_contents[1] gist_id, filename = tag_contents[0], tag_contents[1]
gist_script_tag(gist_id, filename) gist_script_tag(gist_id, filename)
else else
"Error parsing gist id" raise SyntaxError.new <<-eos
Syntax error in tag 'gist' while parsing the following markup:
#{@markup}
Valid syntax:
for public gists: {% gist 1234567 %}
for private gists: {% gist user/1234567 %}
eos
end end
end end