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