Change error handling for gist tag: raise exception
This commit is contained in:
parent
7ccb62e524
commit
06fb31544f
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue