add consistency name in error if consistency not exists
authorEmmanuel Garette <egarette@cadoles.com>
Sat, 25 Oct 2014 21:00:04 +0000 (23:00 +0200)
committerEmmanuel Garette <egarette@cadoles.com>
Sat, 25 Oct 2014 21:00:04 +0000 (23:00 +0200)
tiramisu/option/baseoption.py

index 2a161e0..658b061 100644 (file)
@@ -659,7 +659,7 @@ class Option(OnlyOption):
                                     'multi or none'))
         func = '_cons_{0}'.format(func)
         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))
         value = self.impl_getdefault()
         if value is not None: