better error message

This commit is contained in:
Emmanuel Garette 2020-11-21 19:26:50 +01:00
parent b9107867c9
commit f0be02b80f
1 changed files with 3 additions and 2 deletions

View File

@ -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)