Skip to content

Commit

Permalink
#894: Fix ide.bat printing for initialization and error output - reve…
Browse files Browse the repository at this point in the history
…rt goto for exit code (#932)
  • Loading branch information
alfeilex authored Jan 16, 2025
1 parent a3f76b6 commit c32ef4d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions cli/src/main/package/bin/ide.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ if exist "%GIT_CORE%" (

if not "%1%" == "" (
ideasy %IDE_OPTIONS% %*
goto :output_error
if not %ERRORLEVEL% == 0 (
echo %_fBRed%Error: IDEasy failed with exit code %ERRORLEVEL% %_RESET%
exit /b %ERRORLEVEL%
)

REM https://stackoverflow.com/questions/61888625/what-is-f-in-the-for-loop-command
Expand All @@ -34,9 +36,3 @@ ideasy %IDE_OPTIONS% env>nul
if %ERRORLEVEL% == 0 (
echo IDE environment variables have been set for %IDE_HOME% in workspace %WORKSPACE%
)

:output_error
if not %ERRORLEVEL% == 0 (
echo %_fBRed%Error: IDEasy failed with exit code %ERRORLEVEL% %_RESET%
exit /b %ERRORLEVEL%
)

0 comments on commit c32ef4d

Please sign in to comment.