better debugging information

This commit is contained in:
Bela 2018-06-25 18:53:55 +02:00
parent 5d578e74e4
commit b67b483b3c

View file

@ -483,7 +483,8 @@ class Choice(Command):
return default
else:
raise ConfigError(
"Default on Enter - value not a possible option " +
"Default on Enter - value '" + default
+ "' not a possible option " +
"(" + self.name + " in " + self.reason.name + ")")
def sortOptions(self):
@ -751,6 +752,7 @@ class Choice(Command):
except self.AgainException:
continue
class Default(Command):
"""A default value is saved.