Exception: Planter::Errors::ConfigError

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

Overview

Configuration error class

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ ConfigError

Returns a new instance of ConfigError.



51
52
53
54
55
56
57
# File 'lib/planter/errors.rb', line 51

def initialize(msg = nil)
  msg = msg ? "Config: #{msg}" : 'Configuration error'
  Planter.spinner.error('(Error)')
  Planter.notify(msg, :error, exit_code: EXIT_CODES[:config])

  super(msg)
end