Merge pull request #2623 from strongloop/fix/unglobalize-asserts

Revert globalization of assert() messages
This commit is contained in:
Miroslav Bajtoš 2016-08-15 14:10:13 +02:00 committed by GitHub
commit 1a62ed7f27
1 changed files with 2 additions and 2 deletions

View File

@ -227,8 +227,8 @@ Registry.prototype.configureModel = function(ModelCtor, config) {
// configuration, so that the datasource picks up updated relations
if (config.dataSource) {
assert(config.dataSource instanceof DataSource,
g.f('Cannot configure %s: {{config.dataSource}} must be an instance ' +
'of {{DataSource}}', ModelCtor.modelName));
'Cannot configure ' + ModelCtor.modelName +
': config.dataSource must be an instance of DataSource');
ModelCtor.attachTo(config.dataSource);
debug('Attached model `%s` to dataSource `%s`',
modelName, config.dataSource.name);