From 27d791fb9efaeeaa4e3aae7378ca3a16741ae86e Mon Sep 17 00:00:00 2001 From: Kevin Slijepcevic Date: Tue, 5 Mar 2024 09:39:10 +0100 Subject: [PATCH] builder: pass process error code to BuildError --- pym/bob/builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/bob/builder.py b/pym/bob/builder.py index a4117a40..20c7b058 100644 --- a/pym/bob/builder.py +++ b/pym/bob/builder.py @@ -787,7 +787,8 @@ async def _runShell(self, step, scriptName, logger, cleanWorkspace=None, logger.setError(invoker.getStdio().strip()) raise BuildError("{} returned with {}" .format(absRunFile, ret), - help="You may resume at this point with '--resume' after fixing the error.") + help="You may resume at this point with '--resume' after fixing the error.", + returncode=ret) def getStatistic(self): return self.__statistic