summaryrefslogtreecommitdiff
path: root/alot/settings
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-07-15 12:36:15 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2012-07-15 12:36:15 +0100
commit09f84344e2a8457bb8eff60df23f7a62b2367e41 (patch)
treed781380ffda3b1b295b5edd679baed964a0a3860 /alot/settings
parentfa2324a0c36a6029b89af9f7dcb69ab32d167ec5 (diff)
settings: propagate more failure info
Diffstat (limited to 'alot/settings')
-rw-r--r--alot/settings/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/alot/settings/utils.py b/alot/settings/utils.py
index 6667fa67..45a70fa0 100644
--- a/alot/settings/utils.py
+++ b/alot/settings/utils.py
@@ -33,10 +33,10 @@ def read_config(configpath=None, specpath=None, checks={}):
if results != True:
error_msg = 'Validation errors occurred:\n'
- for (section_list, key, _) in flatten_errors(config, results):
+ for (section_list, key, res) in flatten_errors(config, results):
if key is not None:
- msg = 'key "%s" in section "%s" failed validation'
- msg = msg % (key, ', '.join(section_list))
+ msg = 'key "%s" in section "%s" failed validation: %s'
+ msg = msg % (key, ', '.join(section_list), res)
else:
msg = 'section "%s" is malformed' % ', '.join(section_list)
error_msg += msg + '\n'