better error message
This commit is contained in:
parent
b9107867c9
commit
f0be02b80f
@ -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
Block a user