Provide exception information to help debug issues when reading the config
This commit is contained in:
parent
bdc1b2205f
commit
42dcc13c52
1 changed files with 2 additions and 2 deletions
|
@ -9,8 +9,8 @@ class ConfigReader(object):
|
||||||
with open(config_file_path) as fin:
|
with open(config_file_path) as fin:
|
||||||
data = yaml.load(fin)
|
data = yaml.load(fin)
|
||||||
return data
|
return data
|
||||||
except Exception:
|
except Exception as e:
|
||||||
raise ReadingError('Could not read config file')
|
raise ReadingError('Could not read config file:\n%s' % e)
|
||||||
|
|
||||||
def get_config(self):
|
def get_config(self):
|
||||||
return self._config
|
return self._config
|
||||||
|
|
Loading…
Reference in a new issue