Method: Bundler::Source::Git::GitCommandError#initialize
- Defined in:
- lib/bundler/source/git/git_proxy.rb
#initialize(command, path, extra_info = nil) ⇒ GitCommandError
Returns a new instance of GitCommandError.
28 29 30 31 32 33 34 35 36 |
# File 'lib/bundler/source/git/git_proxy.rb', line 28 def initialize(command, path, extra_info = nil) @command = command msg = String.new("Git error: command `#{command}`") msg << " in directory #{path}" if path msg << " has failed." msg << "\n#{extra_info}" if extra_info super msg end |