Commit c7092107 authored by Eloy Duran's avatar Eloy Duran

Improve error reporting from `pod install PROJECT' when the project doesn't exist. Closes #68.

parent fb8684c0
...@@ -32,6 +32,9 @@ module Pod ...@@ -32,6 +32,9 @@ module Pod
unless podfile = config.rootspec unless podfile = config.rootspec
raise Informative, "No `Podfile' found in the current working directory." raise Informative, "No `Podfile' found in the current working directory."
end end
if @projpath && !File.exist?(@projpath)
raise Informative, "The specified project `#{@projpath}' does not exist."
end
installer = Installer.new(podfile) installer = Installer.new(podfile)
installer.install! installer.install!
installer.configure_project(@projpath) if @projpath installer.configure_project(@projpath) if @projpath
......
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