Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Include declared_path in 'No podspec found..' error message for PathS…

…ource (ref #1825)
  • Loading branch information...
commit 124ab63d3b4e93ba65826c0e84c94bcd779a6659 1 parent a3ec49e
@ericallam ericallam authored
View
2  lib/cocoapods/external_sources.rb
@@ -378,7 +378,7 @@ def podspec_path
pathname = Pathname.new(absolute_path)
unless pathname.exist?
- raise Informative, "No podspec found for `#{name}` in `#{params[:local]}`"
+ raise Informative, "No podspec found for `#{name}` in `#{declared_path}`"
end
pathname
end
View
2  spec/unit/external_sources_spec.rb
@@ -295,7 +295,7 @@ module Pod
it "raises if the podspec cannot be found" do
@external_source.stubs(:params).returns(:path => temporary_directory)
e = lambda { @external_source.send(:podspec_path) }.should.raise Informative
- e.message.should.match /No podspec found/
+ e.message.should.match /No podspec found for `Reachability` in `#{temporary_directory}`/
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.