add consistency name in error if consistency not exists
This commit is contained in:
parent
9ad6cd905c
commit
0728625afd
|
@ -659,7 +659,7 @@ class Option(OnlyOption):
|
||||||
'multi or none'))
|
'multi or none'))
|
||||||
func = '_cons_{0}'.format(func)
|
func = '_cons_{0}'.format(func)
|
||||||
if func not in dir(self):
|
if func not in dir(self):
|
||||||
raise ConfigError(_('consistency {0} not available for this option'))
|
raise ConfigError(_('consistency {0} not available for this option').format(func))
|
||||||
all_cons_opts = tuple([self] + list(other_opts))
|
all_cons_opts = tuple([self] + list(other_opts))
|
||||||
value = self.impl_getdefault()
|
value = self.impl_getdefault()
|
||||||
if value is not None:
|
if value is not None:
|
||||||
|
|
Loading…
Reference in New Issue