module Debloater::Helpers

Public Instance Methods

_fatal(e, msg: nil) click to toggle source
# File lib/debloater/helpers.rb, line 7
def _fatal(e, msg: nil)
  _log "Fatal error:"
  _log msg if msg

  _log "Exception: #{e.class.name}"
  _log "Details: #{e.message}"
  exit 1
end
_log(line) click to toggle source
# File lib/debloater/helpers.rb, line 3
def _log(line)
  $stderr.write("#{line}\n")
end