diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2012-02-19 13:30:53 +0000 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2012-02-19 13:30:53 +0000 |
commit | 936f70fab3e24a5216d049adcc108a9d7424df45 (patch) | |
tree | 65d4d6d49ae42d0b14ee518e5815276cb77b156b | |
parent | 4d79470bbeab92544b03b3c5faa2e12a12a40dd8 (diff) |
more accurate error msg for subsections
unfortunately, you cannot be more specific as to validation errors
in subsections as "in this global section something went wrong".
-rw-r--r-- | alot/settings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/settings.py b/alot/settings.py index 59ba9ad1..e4b4180a 100644 --- a/alot/settings.py +++ b/alot/settings.py @@ -37,7 +37,7 @@ def read_config(configpath=None, specpath=None): msg = 'key "%s" in section "%s" failed validation' msg = msg % (key, ', '.join(section_list)) else: - msg = 'section "%s" was missing' % ', '.join(section_list) + msg = 'section "%s" is malformed' % ', '.join(section_list) error_msg += msg + '\n' raise ConfigError(error_msg) return config |