diff options
author | Philip Arndt <parndt@gmail.com> | 2011-01-27 16:30:46 +1300 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2011-04-08 14:29:25 -0700 |
commit | 81a1303b37faac552c67a2c59778a9f58e12a3c0 (patch) | |
tree | 0a29353a8c0472155cc610dab13abecab75bfaa6 /lib/bundler/source.rb | |
parent | 39debd8c8f1d693443e6823172c89a5733cb94fa (diff) | |
download | bundler-81a1303b37faac552c67a2c59778a9f58e12a3c0.tar.gz |
Provided more helpful feedback when a git command fails.
Diffstat (limited to 'lib/bundler/source.rb')
-rw-r--r-- | lib/bundler/source.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index bb6950916a..e2c13f5d10 100644 --- a/lib/bundler/source.rb +++ b/lib/bundler/source.rb @@ -560,9 +560,8 @@ module Bundler out = %x{git #{command}} if $?.exitstatus != 0 - msg = "Git error: " + - "command `git #{command}` in directory #{Dir.pwd} has failed.\n" + - "Cannot complete bundling." + msg = "Git error: command `git #{command}` in directory #{Dir.pwd} has failed." + msg << "\nIf this error persists you could try removing the cache directory '#{cache_path}'" if cached? raise GitError, msg end out |