carlhuda/bundler — pull request #2198 by jisaacks (2012-12-02 18:53:12+00:00)
Title: Give a more accurate error message

I had a gem in my Gemfile specified like this:

```ruby
gem 'my', :path => '/path/2/my.gem'
```
When I ran: **bundle install** it told me:

> The path `/path/2/my.gem` does not exist.

I was really confused because it did exist and I could manually install it via:

> $ gem install /path/2/my.gem

It wasn't until I ran: **bundle install --verbose** to see where the error was coming from, checked the source and noticed it was expecting it to be a directory.

So I changed my path to just *'/path/2'* and it worked.

So I changed the error message to:

> The path `/path/2/my.gem` is not a directory.

This would have made troubleshooting much faster.