Set errorlevel in .bat wrappers on exit /b where appropriate.

Fixed goma_auth/ctl return code on Windows which was always zero.
Fixed other places where exit /b was used without %errorlevel%.

Change-Id: Ib0a647818c595f843a95762db023b111a447a66a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3532153
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Auto-Submit: Aleksey Khoroshilov <akhoroshilov@brave.com>
Commit-Queue: Josip Sokcevic <sokcevic@google.com>
This commit is contained in:
Aleksey Khoroshilov
2022-03-21 20:05:31 +00:00
committed by LUCI CQ
parent 6ec83a2426
commit df3228656a
4 changed files with 4 additions and 4 deletions

View File

@@ -9,4 +9,4 @@ set scriptdir=%~dp0
@call "%~dp0\cipd_bin_setup.bat" > nul 2>&1
@call %scriptdir%python-bin\python3.bat %~dp0\.cipd_bin\goma_auth.py %*
exit /b
exit /b %ERRORLEVEL%