From 42dcc13c52e08d41117654ce603f08f862061d70 Mon Sep 17 00:00:00 2001 From: Joshua Blum Date: Fri, 24 Apr 2015 12:47:42 +0300 Subject: [PATCH] Provide exception information to help debug issues when reading the config --- dotbot/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotbot/config.py b/dotbot/config.py index 49252d8..6708c3b 100644 --- a/dotbot/config.py +++ b/dotbot/config.py @@ -9,8 +9,8 @@ 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: + raise ReadingError('Could not read config file:\n%s' % e) def get_config(self): return self._config