Commit aad3fb48 authored by Eloy Durán's avatar Eloy Durán

Improve error message when a local source dir doesn't exist.

parent 5b562bb3
......@@ -167,7 +167,7 @@ module Pod
def specification_from_external(sandbox, platform)
copy_external_source_into_sandbox(sandbox, platform)
spec = specification_from_local(sandbox, platform)
raise Informative, "No podspec found for `#{name}` in #{description}" unless spec
raise Informative, "No podspec found for `#{name}' in #{description}" unless spec
spec
end
......@@ -219,7 +219,7 @@ module Pod
class LocalSource < AbstractExternalSource
def pod_spec_path
path = Pathname.new(@params[:local]).expand_path + "#{name}.podspec"
raise Informative, "No podspec found for `#{name}` in #{description}" unless path.exist?
raise Informative, "No podspec found for `#{name}' in `#{@params[:local]}'" unless path.exist?
path
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