code: function handleError(err) {
      if (module.hot.status() in FAILURE_STATUSES) {
        logger.error('Cannot check for update (Full reload needed)');
        logger.error(err.stack || err.message);
        return;
      }
  
      logger.error('Update check failed: ' + err.stack || err.message);
    }
docs: Handling errors