Exception: Regrit::CommandError

Inherits:
Inaccessible show all
Defined in:
lib/regrit/errors.rb

Overview

Raised when there is an error calling git ls-remote (i.e. inaccessible repo)

Instance Method Summary collapse

Constructor Details

#initialize(command, status, stdout, stderr) ⇒ CommandError

Returns a new instance of CommandError.



36
37
38
39
40
41
42
43
44
45
# File 'lib/regrit/errors.rb', line 36

def initialize(command, status, stdout, stderr)
  super <<-ERROR
Command `#{command}` exited with a non-zero exit status [#{status}]:
stdout:
#{stdout}

stderr:
#{stderr}
  ERROR
end