Closed roman-yepishev closed 11 years ago
Patch seems to be easy:
diff --git a/plugins/gist_tag.rb b/plugins/gist_tag.rb
index 74dd3b3..f6ebbb3 100644
--- a/plugins/gist_tag.rb
+++ b/plugins/gist_tag.rb
@@ -82,6 +82,9 @@ module Jekyll
https.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new raw_uri.request_uri
data = https.request request
+ if data.code != 200
+ raise RuntimeError, "Gist replied with #{data.code} for #{gist_url}"
+ end
data = data.body
cache gist, file, data unless @cache_disabled
data
Closing this in favour of your pull request.
STR:
Actual result:
Expected result: gist conversion should fail in order not to create pages which look good in the web browser but are horribly broken in RSS feed reader.