Revert globalization of assert() messages
This commit is contained in:
parent
21bdb28d37
commit
80a0b7d7ad
|
@ -227,8 +227,8 @@ Registry.prototype.configureModel = function(ModelCtor, config) {
|
||||||
// configuration, so that the datasource picks up updated relations
|
// configuration, so that the datasource picks up updated relations
|
||||||
if (config.dataSource) {
|
if (config.dataSource) {
|
||||||
assert(config.dataSource instanceof DataSource,
|
assert(config.dataSource instanceof DataSource,
|
||||||
g.f('Cannot configure %s: {{config.dataSource}} must be an instance ' +
|
'Cannot configure ' + ModelCtor.modelName +
|
||||||
'of {{DataSource}}', ModelCtor.modelName));
|
': config.dataSource must be an instance of DataSource');
|
||||||
ModelCtor.attachTo(config.dataSource);
|
ModelCtor.attachTo(config.dataSource);
|
||||||
debug('Attached model `%s` to dataSource `%s`',
|
debug('Attached model `%s` to dataSource `%s`',
|
||||||
modelName, config.dataSource.name);
|
modelName, config.dataSource.name);
|
||||||
|
|
Loading…
Reference in New Issue