add consistency name in error if consistency not exists

This commit is contained in:
Emmanuel Garette 2014-10-25 23:00:04 +02:00
parent 9ad6cd905c
commit 0728625afd
1 changed files with 1 additions and 1 deletions

View File

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