Module: Error

Defined in:
lib/error.rb

Class Method Summary collapse

Class Method Details

.fatal(message) ⇒ Object

Exits without callbacks to at_exit



19
20
21
22
# File 'lib/error.rb', line 19

def self.fatal(message)
  warn "can: #{message}"
  exit!(EXIT_FAILURE)
end

.nonfatal(message) ⇒ Object



13
14
15
16
# File 'lib/error.rb', line 13

def self.nonfatal(message)
  warn "can: #{message}"
  $exit = EXIT_FAILURE
end