In Files

Parent

Methods

Files

Grit::Git::CommandFailed

Raised when a native git command exits with non-zero.

Attributes

command[R]

The full git command that failed as a String.

err[R]

Everything output on the command's stderr as a String.

exitstatus[R]

The integer exit status.

Public Class Methods

new(command, exitstatus=nil, err='') click to toggle source
# File lib/grit/git.rb, line 29
def initialize(command, exitstatus=nil, err='')
  if exitstatus
    @command = command
    @exitstatus = exitstatus
    @err = err
    message = "Command failed [#{exitstatus}]: #{command}"
    message << "\n\n" << err unless err.nil? || err.empty?
    super message
  else
    super command
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.