Raised when a native git command exits with non-zero.
The full git command that failed as a String.
Everything output on the command’s stderr as a String.
The integer exit status.
# 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