lib/configuration.js
function onLoad() {
  var k, o, v;
  for(k in this._data) {
    o = this._data[k];
    v = o.value;
    try {
      this.verify(k, v);

      if(k === Types.SLAVEOF) {
        if(this.get(Types.CLUSTER_ENABLED) && v) {
          throw new Error('slaveof directive not allowed in cluster mode');
        }
      }
    }catch(e) {
      //console.dir('got include error');
      this.emit('error',
        new ConfigError(
          o.lineno, this._lines[o.lineno - 1] || null, this.getFile(), e));
    }
  }
}
function onLoad() {
  var k, o, v;
  for(k in this._data) {
    o = this._data[k];
    v = o.value;
    try {
      this.verify(k, v);

      if(k === Types.SLAVEOF) {
        if(this.get(Types.CLUSTER_ENABLED) && v) {
          throw new Error('slaveof directive not allowed in cluster mode');
        }
      }
    }catch(e) {
      //console.dir('got include error');
      this.emit('error',
        new ConfigError(
          o.lineno, this._lines[o.lineno - 1] || null, this.getFile(), e));
    }
  }
}
function onLoad ( ) { var k , o , v ; for ( k in this . _data ) { o = this . _data [ k ] ; v = o . value ; try { this . verify ( k , v ) ; if ( k === Types . SLAVEOF ) { if ( this . get ( Types . CLUSTER_ENABLED ) && v ) { throw new Error ( 'slaveof directive not allowed in cluster mode' ) ; } } } catch ( e ) { //console.dir('got include error'); this . emit ( 'error' , new ConfigError ( o . lineno , this . _lines [ o . lineno - 1 ] || null , this . getFile ( ) , e ) ) ; } } }
Post load validation.
Post load validation .