Exception: Planter::Errors::GitError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/planter/errors.rb

Overview

Git error class

Instance Method Summary collapse

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