summaryrefslogtreecommitdiff
path: root/dotbot/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'dotbot/config.py')
-rw-r--r--dotbot/config.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/dotbot/config.py b/dotbot/config.py
index 49252d8..a6ee9da 100644
--- a/dotbot/config.py
+++ b/dotbot/config.py
@@ -1,4 +1,5 @@
import yaml
+from .util import string
class ConfigReader(object):
def __init__(self, config_file_path):
@@ -9,8 +10,9 @@ class ConfigReader(object):
with open(config_file_path) as fin:
data = yaml.load(fin)
return data
- except Exception:
- raise ReadingError('Could not read config file')
+ except Exception as e:
+ msg = string.indent_lines(str(e))
+ raise ReadingError('Could not read config file:\n%s' % msg)
def get_config(self):
return self._config