1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

target: Add exception message when module fails to load

Log the exception message when a target module fails to load.
This commit is contained in:
Douglas Raillard 2021-11-15 15:32:33 +00:00 committed by Marc Bonnici
parent 728b59ad7e
commit 48329b7891

View File

@ -1265,7 +1265,7 @@ fi
try: try:
mod.install(self, **params) mod.install(self, **params)
except Exception as e: except Exception as e:
self.logger.error('Module "{}" failed to install on target'.format(name)) self.logger.error('Module "{}" failed to install on target: {}'.format(name, e))
raise raise
self._installed_modules[name] = mod self._installed_modules[name] = mod
if name not in self.modules: if name not in self.modules: