Exception: Bundler::Source::Git::GitCommandError
- Inherits:
-
GitError
- Object
- StandardError
- BundlerError
- GitError
- Bundler::Source::Git::GitCommandError
- Defined in:
- lib/bundler/source/git/git_proxy.rb
Instance Method Summary collapse
-
#initialize(command, path = nil) ⇒ GitCommandError
constructor
A new instance of GitCommandError.
Methods inherited from BundlerError
Constructor Details
#initialize(command, path = nil) ⇒ GitCommandError
Returns a new instance of GitCommandError.
23 24 25 26 27 |
# File 'lib/bundler/source/git/git_proxy.rb', line 23 def initialize(command, path = nil) msg = "Git error: command `git #{command}` in directory #{Dir.pwd} has failed." msg << "\nIf this error persists you could try removing the cache directory '#{path}'" if path && path.exist? super msg end |