|
@@ -22,10 +22,10 @@ class ParseMapping:
|
|
|
import json
|
|
|
from cdplib.log import Log
|
|
|
|
|
|
- self.log = Log('Parse Mapping')
|
|
|
+ self._log = Log('Parse Mapping')
|
|
|
|
|
|
if not os.path.isfile(mapping_path):
|
|
|
- err = "Mapping not found"
|
|
|
+ err = "Mapping not found "+mapping_path
|
|
|
self._log.error(err)
|
|
|
raise FileNotFoundError(err)
|
|
|
|
|
@@ -34,7 +34,7 @@ class ParseMapping:
|
|
|
self._mapping = json.load(f)
|
|
|
|
|
|
except Exception as e:
|
|
|
- err = ("Could not load mapping. "
|
|
|
+ err = ("Could not load mapping. " + mapping_path +
|
|
|
"Exit with error {}".format(e))
|
|
|
self._log.error(err)
|
|
|
raise Exception(err)
|