better debugging information
This commit is contained in:
parent
5d578e74e4
commit
b67b483b3c
1 changed files with 3 additions and 1 deletions
|
@ -483,7 +483,8 @@ class Choice(Command):
|
||||||
return default
|
return default
|
||||||
else:
|
else:
|
||||||
raise ConfigError(
|
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 + ")")
|
"(" + self.name + " in " + self.reason.name + ")")
|
||||||
|
|
||||||
def sortOptions(self):
|
def sortOptions(self):
|
||||||
|
@ -751,6 +752,7 @@ class Choice(Command):
|
||||||
except self.AgainException:
|
except self.AgainException:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
||||||
class Default(Command):
|
class Default(Command):
|
||||||
"""A default value is saved.
|
"""A default value is saved.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue