misc stuff

This commit is contained in:
Romain Bignon 2010-04-04 16:52:03 +02:00
commit 140024b813
2 changed files with 1 additions and 2 deletions

View file

@ -51,7 +51,7 @@ class Backend:
value = config.get(name, field.default)
if value is None:
raise Backend.ConfigError("Missing parameter '%s'" % name)
raise Backend.ConfigError("Missing parameter '%s' (%s)" % (name, field.description))
if field.regexp and re.match(field.regexp, str(value)):
raise Backend.ConfigError("Value of '%s' does not match regexp '%s'" % (name, field.regexp))