private/adapters/dev-fixtures.js
function (errors) {
    if (typeof errors === 'string' || errors instanceof Error) {
      errors = {'*': '' + errors};
    }
    else if (errors == null) {
      errors = {'*': 'Unknown error'};
    }
    return new DS.InvalidError(errors);
  }
function (errors) {
    if (typeof errors === 'string' || errors instanceof Error) {
      errors = {'*': '' + errors};
    }
    else if (errors == null) {
      errors = {'*': 'Unknown error'};
    }
    return new DS.InvalidError(errors);
  }
function ( errors ) { if ( typeof errors === 'string' || errors instanceof Error ) { errors = { '*' : '' + errors } ; } else if ( errors == null ) { errors = { '*' : 'Unknown error' } ; } return new DS . InvalidError ( errors ) ; }
Creates an error response to be used with simulateResponseCall

@method createErrorResponse
@param {Object|Error|string} errors
@return {Object}
Creates an error response to be used with simulateResponseCall