Commit 15ea3f2f authored by Boris Bügling's avatar Boris Bügling

Fail with a helpful error if :head is unsupported.

parent ef1f8914
......@@ -95,11 +95,17 @@ module Pod
def download_source
root.rmtree if root.exist?
if head_pod?
downloader.download_head
if downloader.options_specific?
begin
downloader.download_head
@specific_source = downloader.checkout_options
else
@specific_source = {}
rescue RuntimeError => e
if e.message == 'Abstract method'
raise Informative, "The pod '" + root_spec.name + "' does not " +
"support the :head option, as it uses a " + downloader.name +
" source. Remove that option to use this pod."
else
raise
end
end
else
downloader.download
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment