better error message
This commit is contained in:
parent
b9107867c9
commit
f0be02b80f
|
@ -1267,8 +1267,9 @@ class KernelMixConfig(KernelGroupConfig):
|
||||||
apiconfig):
|
apiconfig):
|
||||||
config = apiconfig._config_bag.context
|
config = apiconfig._config_bag.context
|
||||||
if config.impl_getname() in [child.impl_getname() for child in self._impl_children]:
|
if config.impl_getname() in [child.impl_getname() for child in self._impl_children]:
|
||||||
raise ConflictError(_('config name must be uniq in '
|
raise ConflictError(_('config name "{0}" is not uniq in '
|
||||||
'groupconfig for {0}').format(config.impl_getname()))
|
'groupconfig "{1}"').format(config.impl_getname(),
|
||||||
|
self.impl_getname()))
|
||||||
|
|
||||||
config.parents.append(weakref.ref(self))
|
config.parents.append(weakref.ref(self))
|
||||||
self._impl_children.append(config)
|
self._impl_children.append(config)
|
||||||
|
|
Loading…
Reference in New Issue