Skip to content

Commit 5363c6c

Browse files
authored
Merge pull request #556 from KevinSlijepcevic/return-error-code
builder: pass process error code to BuildError
2 parents 9630b0f + 27d791f commit 5363c6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pym/bob/builder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,8 @@ async def _runShell(self, step, scriptName, logger, cleanWorkspace=None,
787787
logger.setError(invoker.getStdio().strip())
788788
raise BuildError("{} returned with {}"
789789
.format(absRunFile, ret),
790-
help="You may resume at this point with '--resume' after fixing the error.")
790+
help="You may resume at this point with '--resume' after fixing the error.",
791+
returncode=ret)
791792

792793
def getStatistic(self):
793794
return self.__statistic

0 commit comments

Comments
 (0)