Exception: Planter::Errors::GitError
- Inherits:
-
StandardError
- Object
- StandardError
- Planter::Errors::GitError
- Defined in:
- lib/planter/errors.rb
Overview
Git error class
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ GitError
constructor
A new instance of GitError.
Constructor Details
#initialize(msg = nil) ⇒ GitError
Returns a new instance of GitError.
39 40 41 42 43 44 45 46 |
# File 'lib/planter/errors.rb', line 39 def initialize(msg = nil) msg = msg ? "Git: #{msg}" : 'Git error' Planter.spinner.error('(Error)') Planter.notify(msg, :error, exit_code: EXIT_CODES[:git]) super(msg) end |