From fc3ac69bd474a5cf7cc9da9eba3fa2fc01eac9a1 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Sat, 2 May 2026 06:54:22 +0200 Subject: [PATCH] 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 --- src/python/jw/pkg/cmds/projects/CmdBuild.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/python/jw/pkg/cmds/projects/CmdBuild.py b/src/python/jw/pkg/cmds/projects/CmdBuild.py index 2d83d6f3..886070e9 100644 --- a/src/python/jw/pkg/cmds/projects/CmdBuild.py +++ b/src/python/jw/pkg/cmds/projects/CmdBuild.py @@ -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