Exception: OmaGem::CommandFailed

Inherits:
Error
  • Object
show all
Defined in:
lib/omagem/errors.rb

Overview

Raised (unless swallowed with ignore_errors: true) when an omarchy command exits with a non-zero status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args, result) ⇒ CommandFailed

Returns a new instance of CommandFailed.



15
16
17
18
19
# File 'lib/omagem/errors.rb', line 15

def initialize(args, result)
  @args = args
  @result = result
  super("omarchy #{args.join(' ')} failed (exit #{result.status}): #{result.stderr}")
end

Instance Attribute Details

#args ⇒ Object (readonly)

Returns the value of attribute args.



13
14
15
# File 'lib/omagem/errors.rb', line 13

def args
  @args
end

#result ⇒ Object (readonly)

Returns the value of attribute result.



13
14
15
# File 'lib/omagem/errors.rb', line 13

def result
  @result
end