Commit 80bd1618 authored by Samuel E. Giddins's avatar Samuel E. Giddins

Improved error message when pulling a spec repo raises

Closes https://github.com/CocoaPods/CocoaPods/issues/1914
parent cbf504ca
...@@ -152,8 +152,13 @@ module Pod ...@@ -152,8 +152,13 @@ module Pod
sources.each do |source| sources.each do |source|
UI.section "Updating spec repo `#{source.name}`" do UI.section "Updating spec repo `#{source.name}`" do
Dir.chdir(source.data_provider.repo) do Dir.chdir(source.data_provider.repo) do
begin
output = git!("pull --no-rebase --no-commit") output = git!("pull --no-rebase --no-commit")
UI.puts output if show_output && !config.verbose? UI.puts output if show_output && !config.verbose?
rescue Informative => e
raise Informative, 'An error occurred while performing ' \
"`git pull` on repo `#{source.name}`.\n" + e.message
end
end end
check_version_information(source.data_provider.repo) check_version_information(source.data_provider.repo)
end end
......
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