diff --git a/devlib/utils/misc.py b/devlib/utils/misc.py
index 3da6e4d..7146481 100644
--- a/devlib/utils/misc.py
+++ b/devlib/utils/misc.py
@@ -186,6 +186,7 @@ def walk_modules(path):
         except Exception as e:
             he = HostError('Could not load {}: {}'.format(path, str(e)))
             he.module = path
+            he.exc_info = sys.exc_info()
             he.orig_exc = e
             raise he