cmds.projects.CmdBuild: Don't change handled Exception

Exceptions raised by the build command are handled and changed, messing up the stack trace. Re-raise the original exception from the exception handler to fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-05-02 06:54:22 +02:00
commit fc3ac69bd4
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -124,7 +124,8 @@ class CmdBuild(Cmd): # export
title=title
)
except Exception as e:
raise RuntimeError(f'Failed to make target "{target}" in module "{module}" below base {self.app.projs_root}: {str(e)}')
log(ERR, f'Failed to make target "{target}" in module "{module}" below base {self.app.projs_root}: {str(e)}')
raise
async def run_make_on_modules(modules, order, target):
cur_project = 0