Exception: Regrit::CommandError
- Inherits:
-
Inaccessible
- Object
- RuntimeError
- Error
- Inaccessible
- Regrit::CommandError
- 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
-
#initialize(command, status, stdout, stderr) ⇒ CommandError
constructor
A new instance of CommandError.
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 |