Skip to content

Commit e62aa73

Browse files
committed
Add unexpected ERRORLEVEL messages to cmd
1 parent 9839a76 commit e62aa73

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Misc/layoutbin/run-helper.cmd

+7-2
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,21 @@ if %ERRORLEVEL% EQU 2 (
1919
goto :launch_listener
2020
)
2121

22-
rem Return code 4 means the runner received an update message.
2322
if %ERRORLEVEL% EQU 3 (
2423
echo "Runner listener exit because of updating, re-launch runner in 5 seconds"
2524
timeout /t 5 /nobreak > NUL
2625
)
2726

28-
rem Return code 4 means the ephemeral runner received an update message.
2927
if %ERRORLEVEL% EQU 4 (
3028
echo "Runner listener exit because of updating, re-launch ephemeral runner in 5 seconds"
3129
timeout /t 5 /nobreak > NUL
3230
)
3331

32+
if %ERRORLEVEL% GEQ 5 (
33+
echo "Exiting with unknown error code: ${returnCode}"
34+
)
35+
if [%ERRORLEVEL%]==[] (
36+
echo "Exiting with empty error code: ${returnCode}"
37+
)
38+
3439
exit /b %ERRORLEVEL%

0 commit comments

Comments
 (0)