berkshelf/berkshelf — pull request #879 by reset (2013-12-31 22:18:09+00:00)
Title: exception info swallowed when git protocol doesn't work

Berkshelf seems to swallow helpful exception info in certain circumstances (even when `--debug` mode is enabled). For example, if the "git" protocol isn't working on a WiFi network, you get this:

$ berks install -d
Failed to download 'nexus' from github: 'RiotGames/nexus-cookbook' with branch: '2.2.0' over protocol: 'git'
Cookbook 'nexus' not found in any of the default locations

If you do a bare `git clone` in contrast, the problem is much clearer:

$ git clone git://github.com/RiotGames/nexus-cookbook.git
Cloning into 'nexus-cookbook'...
fatal: unable to connect to github.com:
github.com[0: 192.30.252.129]: errno=Connection refused

Better would be if Berkshelf captures this helpful info, lets it bubble up, and then displays it. This would have helped in at least a couple reported issues (e.g. issue #877 and issue #791) and possibly more.