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 ...@@ -95,11 +95,17 @@ module Pod
def download_source def download_source
root.rmtree if root.exist? root.rmtree if root.exist?
if head_pod? if head_pod?
begin
downloader.download_head downloader.download_head
if downloader.options_specific?
@specific_source = downloader.checkout_options @specific_source = downloader.checkout_options
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 else
@specific_source = {} raise
end
end end
else else
downloader.download 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