Skip to content

Commit 3223c7d

Browse files
committed
error propagation
1 parent 08f9ffa commit 3223c7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/build-windows-toolchain.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ echo set SKIP_UPDATE_CHECKOUT=%SKIP_UPDATE_CHECKOUT%>> %TEMP%\call-build.cmd
2525
echo set REPO_SCHEME=%REPO_SCHEME%>> %TEMP%\call-build.cmd
2626
echo "%~f0">> %TEMP%\call-build.cmd
2727
start /i /b /wait cmd.exe /env=default /c "%TEMP%\call-build.cmd"
28+
set ExitCode=%ErrorLevel%
2829
del %TEMP%\call-build.cmd
29-
exit /b
30+
exit /b %ExitCode%
3031

3132
:Start
3233

0 commit comments

Comments
 (0)