improve error messages when attached modules fail on startup

fix to align local frappy branch wip with gerrit repo

Change-Id: Iafbd8c5e4b67209046c252f2cafa69dcb6e2bbcb
This commit is contained in:
2025-10-30 08:01:26 +01:00
parent 51725d6d0d
commit 8575a2f785
3 changed files with 2 additions and 6 deletions

View File

@@ -97,7 +97,7 @@ class SecNode:
self.traceback_counter += 1
self.errors.append(f'error initializing {modulename}: {e!r}')
modobj._initfailed = True
raise InitFailed('try to access erroneous module')
raise InitFailed('try to access erroneous module') from e
modobj._isinitialized = True
self.log.debug('initialized module %r', modulename)
return modobj