Class: Qs::ConfigFile::NoDaemonError

Inherits:
InvalidError
  • Object
show all
Defined in:
lib/qs/config_file.rb

Instance Method Summary collapse

Constructor Details

#initialize(daemon, path) ⇒ NoDaemonError

Returns a new instance of NoDaemonError.



67
68
69
70
71
72
73
74
# File 'lib/qs/config_file.rb', line 67

def initialize(daemon, path)
  prefix = "Configuration file #{path.to_s.inspect}"
  if daemon
    super "#{prefix} called `run` without a Qs::Daemon"
  else
    super "#{prefix} didn't call `run` with a Qs::Daemon"
  end
end