From 48329b7891d16b309be76a6d329156241ddd6ada Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Mon, 15 Nov 2021 15:32:33 +0000 Subject: [PATCH] target: Add exception message when module fails to load Log the exception message when a target module fails to load. --- devlib/target.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devlib/target.py b/devlib/target.py index 82271be..ac706c0 100644 --- a/devlib/target.py +++ b/devlib/target.py @@ -1265,7 +1265,7 @@ fi try: mod.install(self, **params) 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 self._installed_modules[name] = mod if name not in self.modules: