From b67b483b3c3194f4eb5e488ac6546d3051275d4f Mon Sep 17 00:00:00 2001 From: Bela Date: Mon, 25 Jun 2018 18:53:55 +0200 Subject: [PATCH] better debugging information --- commands.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands.py b/commands.py index 5faabea..8cf6e28 100644 --- a/commands.py +++ b/commands.py @@ -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.