code: function onClientError(err) {
      // Ignore ECONNRESET errors
      if ((err || {}).errno !== 'ECONNRESET') {
        log.error('An unhandled error occured when searching for the root DSE at "%s". Error: %j', url, err);
        if (hasEvents.call(self, 'error')) self.emit('error', err)
      }
    }
docs: Inline function handle connection and result errors.
  
  @private