class 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, err='') click to toggle source
Calls superclass method
# File lib/grit/git.rb, line 26
def initialize(command, exitstatus, err='')
  @command = command
  @exitstatus = exitstatus
  @err = err
  super "Command exited with #{exitstatus}: #{command}"
end