From 78196db2e676a5ba3e934ef1e11cb392194b6351 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Sun, 31 Jan 2016 14:40:07 +0100 Subject: alot/settings/utils.py: extend error message on IOError exception --- alot/settings/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alot/settings') diff --git a/alot/settings/utils.py b/alot/settings/utils.py index f4cfecbc..b6984a7f 100644 --- a/alot/settings/utils.py +++ b/alot/settings/utils.py @@ -27,7 +27,7 @@ def read_config(configpath=None, specpath=None, checks={}): except ConfigObjError as e: raise ConfigError(e) except IOError: - raise ConfigError('Could not read %s' % configpath) + raise ConfigError('Could not read %s and/or %s' % (configpath, specpath)) except UnboundLocalError: # this works around a bug in configobj msg = '%s is malformed. Check for sections without parents..' -- cgit v1.2.3