File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ This file documents all notable changes to https://github.com/devonfw/IDEasy[IDE
6
6
7
7
Release with new features and bugfixes:
8
8
9
+ * https://github.com/devonfw/IDEasy/issues/894[#894]: Fix ide.bat printing for initialization and error output
9
10
10
11
The full list of changes for this release can be found in https://github.com/devonfw/IDEasy/milestone/18?closed=1[milestone 2025.01.001].
11
12
Original file line number Diff line number Diff line change @@ -21,17 +21,22 @@ if exist "%GIT_CORE%" (
21
21
22
22
if not " %1 %" == " " (
23
23
ideasy %IDE_OPTIONS% %*
24
- if not %ERRORLEVEL% == 0 (
25
- echo %_fBRed% Error: IDEasy failed with exit code %ERRORLEVEL% %_RESET%
26
- exit /b %ERRORLEVEL%
27
- )
24
+ goto :output_error
28
25
)
29
26
30
27
REM https://stackoverflow.com/questions/61888625/what-is-f-in-the-for-loop-command
31
28
for /f " tokens=*" %%i in ('ideasy %IDE_OPTIONS% env') do (
32
29
call set %%i
33
30
)
34
31
35
- if not %ERRORLEVEL% == 0 (
32
+ ideasy %IDE_OPTIONS% env> nul
33
+
34
+ if %ERRORLEVEL% == 0 (
36
35
echo IDE environment variables have been set for %IDE_HOME% in workspace %WORKSPACE%
37
36
)
37
+
38
+ :output_error
39
+ if not %ERRORLEVEL% == 0 (
40
+ echo %_fBRed% Error: IDEasy failed with exit code %ERRORLEVEL% %_RESET%
41
+ exit /b %ERRORLEVEL%
42
+ )
You can’t perform that action at this time.
0 commit comments