Exception: Bundler::Source::Git::GitCommandError

Inherits:
GitError show all
Defined in:
lib/bundler/source/git/git_proxy.rb

Direct Known Subclasses

MissingGitRevisionError

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BundlerError

all_errors, status_code

Constructor Details

#initialize(command, path = nil, extra_info = nil) ⇒ GitCommandError

Returns a new instance of GitCommandError.



30
31
32
33
34
35
36
37
38
# File 'lib/bundler/source/git/git_proxy.rb', line 30

def initialize(command, path = nil, extra_info = nil)
  @command = command

  msg = String.new
  msg << "Git error: command `git #{command}` in directory #{SharedHelpers.pwd} has failed."
  msg << "\n#{extra_info}" if extra_info
  msg << "\nIf this error persists you could try removing the cache directory '#{path}'" if path && path.exist?
  super msg
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



28
29
30
# File 'lib/bundler/source/git/git_proxy.rb', line 28

def command
  @command
end