Report an error when elisp on EmacsWiki gets deleted upstream (as happened with rainbow-delimiters.el)

This commit is contained in:
Steve Purcell 2012-04-24 20:07:44 +01:00
parent 66db7a2e84
commit ead0703746

View file

@ -155,6 +155,8 @@ rate limiting."
(format "http://www.emacswiki.org/emacs/%s" filename)))
(pb/with-wiki-rate-limit
(url-copy-file download-url filename t))
(when (zerop (nth 7 (file-attributes filename)))
(error "Wiki file %s was empty - has it been removed?" filename))
(with-current-buffer (pb/with-wiki-rate-limit
(url-retrieve-synchronously wiki-url))
(message (format "%s\n" download-url))