Commit fed0e294 authored by Kyle Fuller's avatar Kyle Fuller

Merge pull request #2076 from segiddins/show-repo-name-on-failed-pull

Improved error message when pulling a spec repo raises
parents dad69260 80bd1618
......@@ -152,8 +152,13 @@ module Pod
sources.each do |source|
UI.section "Updating spec repo `#{source.name}`" do
Dir.chdir(source.data_provider.repo) do
output = git!("pull --no-rebase --no-commit")
UI.puts output if show_output && !config.verbose?
begin
output = git!("pull --no-rebase --no-commit")
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
check_version_information(source.data_provider.repo)
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