Commit 722ef22d authored by Samuel E. Giddins's avatar Samuel E. Giddins

[SourcesManager] Dont use modifier unless on monster raise statement.

Thanks @k0nserv!
parent 7a6020d2
...@@ -39,9 +39,11 @@ module Pod ...@@ -39,9 +39,11 @@ module Pod
Command::Repo::Add.new(CLAide::ARGV.new([name, url])).run Command::Repo::Add.new(CLAide::ARGV.new([name, url])).run
source = source_with_url(url) source = source_with_url(url)
end end
raise Informative, "Unable to add a source with url `#{url}` named " \ unless source
"`#{name}`.\nYou can add it manually via `pod repo add NAME " \ raise Informative, "Unable to add a source with url `#{url}` named " \
"#{url}`.\n\n#{output}" unless source "`#{name}`.\nYou can add it manually via `pod repo add NAME " \
"#{url}`.\n\n#{output}"
end
source source
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