Exception: OmaGem::CommandFailed
- 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
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(args, result) ⇒ CommandFailed
constructor
A new instance of CommandFailed.
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 |