function logError(message, position) {
    results.push({
      level: 'ERROR',
      filename: filename,
      position: position,
      message: message,
    });
  }
Simple wrapper that adds an error to the list

@param {string} message The message to add.
@param {object} position The line number the error occurred on.