lib/query/mixins/bound_helpers.js
function(association, name) {
    var context = this._relationCallContext;
    var through = association.indexOf('.') !== -1 ?
      util.format(' through %s', association) : '';
    return _.extend(new Error(util.format(
      'No relation %j found for `%s` on %s query%s.',
      name, context, this._model.__identity__.__name__, through)), {
      code: 'RELATION_ITERATION_FAILURE',
    });

  }
function(association, name) {
    var context = this._relationCallContext;
    var through = association.indexOf('.') !== -1 ?
      util.format(' through %s', association) : '';
    return _.extend(new Error(util.format(
      'No relation %j found for `%s` on %s query%s.',
      name, context, this._model.__identity__.__name__, through)), {
      code: 'RELATION_ITERATION_FAILURE',
    });

  }
function ( association , name ) { var context = this . _relationCallContext ; var through = association . indexOf ( '.' ) !== - 1 ? util . format ( ' through %s' , association ) : '' ; return _ . extend ( new Error ( util . format ( 'No relation %j found for `%s` on %s query%s.' , name , context , this . _model . __identity__ . __name__ , through ) ) , { code : 'RELATION_ITERATION_FAILURE' , } ) ; }
Create an error for a missing relation during relation iteration.

@param {String} association Relation key path.
@param {String} name The name that caused the error.
@return {Error} The error object.
Create an error for a missing relation during relation iteration .