src/errors.js
function(attribute, message) {
    if (!this.has(attribute)) {
      this.errors[attribute] = [];
    }

    if (this.errors[attribute].indexOf(message) === -1) {
      this.errors[attribute].push(message);
    }
  }
function(attribute, message) {
    if (!this.has(attribute)) {
      this.errors[attribute] = [];
    }

    if (this.errors[attribute].indexOf(message) === -1) {
      this.errors[attribute].push(message);
    }
  }
function ( attribute , message ) { if ( ! this . has ( attribute ) ) { this . errors [ attribute ] = [ ] ; } if ( this . errors [ attribute ] . indexOf ( message ) === - 1 ) { this . errors [ attribute ] . push ( message ) ; } }
Add new error message for given attribute

@param  {string} attribute
@param  {string} message
@return {void}
Add new error message for given attribute