Permalink
Browse files

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

…ource (ref #1825)
  • Loading branch information...
1 parent a3ec49e commit 124ab63d3b4e93ba65826c0e84c94bcd779a6659 @ericallam ericallam committed Feb 21, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/cocoapods/external_sources.rb
  2. +1 −1 spec/unit/external_sources_spec.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
@@ -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

0 comments on commit 124ab63

Please sign in to comment.