def error(description, error = nil, abort = false)
      if @logging_enabled
        msg = "[check] #{description}"
        msg += ", aborting" if abort
        msg = Log.format(msg, error, :trace) if error
        Log.error(msg)
      end

      msg = description
      msg += ": #{error}" if error
      puts "** #{msg}"

      if abort
        terminate
        exit(1)
      end
      true
    end
def error(description, error = nil, abort = false)
      if @logging_enabled
        msg = "[check] #{description}"
        msg += ", aborting" if abort
        msg = Log.format(msg, error, :trace) if error
        Log.error(msg)
      end

      msg = description
      msg += ": #{error}" if error
      puts "** #{msg}"

      if abort
        terminate
        exit(1)
      end
      true
    end
Handle error by logging message and optionally aborting execution

 === Parameters
 description(String):: Description of context where error occurred
 error(Exception|String):: Exception or error message
 abort(Boolean):: Whether to abort execution

 === Return
 true:: If do not abort