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:
parent
69f1f3e071
commit
fc3ac69bd4
1 changed files with 2 additions and 1 deletions
|
|
@ -124,7 +124,8 @@ class CmdBuild(Cmd): # export
|
||||||
title=title
|
title=title
|
||||||
)
|
)
|
||||||
except Exception as e:
|
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):
|
async def run_make_on_modules(modules, order, target):
|
||||||
cur_project = 0
|
cur_project = 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue