Skip to content
Snippets Groups Projects
Commit 5bf4501e authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

improve message when failure happens in dependencies

parent 1ec174e5
No related branches found
No related tags found
No related merge requests found
......@@ -190,7 +190,11 @@ class RelativeDependencySolver:
depIKEnv = InfoKindEnv(path = dPath, dependencyLoader=infoKindEnv.dependencyLoader)
self.deps[dPath] = depIKEnv
with open(dPath) as f:
try:
depInfo = json.load(f)
except:
logging.exception("Error while loading dependency %s" % f)
raise
if depInfo:
depIKEnv.fromJsonList(depInfo, name = os.path.basename(dPath), source = { 'path': dPath }, dependencyLoad = True)
return depIKEnv
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment