Commit 253a8cb8 authored by Samuel E. Giddins's avatar Samuel E. Giddins

[SourcesManager] Tweak message when adding repo via URL fails

Thanks @alloy
parent e1ab2c04
...@@ -43,8 +43,8 @@ module Pod ...@@ -43,8 +43,8 @@ module Pod
Command::Repo::Add.new(CLAide::ARGV.new([name, url])).run Command::Repo::Add.new(CLAide::ARGV.new([name, url])).run
rescue Informative => e rescue Informative => e
raise Informative, "Unable to add a source with url `#{url}` " \ raise Informative, "Unable to add a source with url `#{url}` " \
"named `#{name}`.\nYou can add it manually via " \ "named `#{name}`.\nYou can try adding it manually in " \
"`pod repo add NAME #{url}`." '`~/.cocoapods/repos` or via `pod repo add`.'
ensure ensure
UI.title_level = previous_title_level UI.title_level = previous_title_level
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