mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
include expected type of config option in error
This commit is contained in:
parent
881757815f
commit
1812aeb238
1 changed files with 3 additions and 2 deletions
|
@ -232,6 +232,7 @@ def load(paths=(), extra_config=None, ignore_missing_paths=True):
|
||||||
type_(config.get(section, option))
|
type_(config.get(section, option))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
"Invalid value %r for option %r in section %r in config" %
|
"Invalid %s value for option %r in section %r in config: "
|
||||||
(config.get(section, option), option, section)) from e
|
"%r" % (type_.__name__, option, section,
|
||||||
|
config.get(section, option))) from e
|
||||||
return config
|
return config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue