Skip to content
Snippets Groups Projects
Commit 808b9f75 authored by Gaëlle USSEGLIO's avatar Gaëlle USSEGLIO
Browse files

STYLE : Add the exception message when json reading raises an error

parent 32e32184
No related branches found
No related tags found
2 merge requests!52Merge for v1.1.0,!47TSX/PAZ/TDX processing in python_src
......@@ -210,8 +210,9 @@ class ConfigFile():
self._data_config = json.load(f)
except Exception as err:
logger.critical("Impossible to read or load JSON configuration file : {err}. Check its path and content."\
.format(err=self._config_file))
logger.critical("Impossible to read or load JSON configuration file : {name}." \
"Check its path and content. For your information, exception is \n : {err}"\
.format(name=self._config_file, err=err))
quit()
self._validate_json()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment