Revert globalization of assert() messages
This commit is contained in:
parent
3719ac4bb9
commit
1dab10da3c
|
@ -239,8 +239,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);
|
||||
|
|
Loading…
Reference in New Issue