How to get the errorlevel of a make call when the wrapper was used

Hello,

actually we have a make call, which uses the errorlevel to do some subsequent things depending on the errorlevel.

As example:


CALL make -f xyz_controller.mk TARGETTYPE=ANYTHING test
REM Check if compilation was successful
REM leave current batch with errorlevel 1

IF ERRORLEVEL 1 GOTO MAKE_ERROR

Now we have to call the make over the wrapper like this:

build-wrapper-win-x86-64.exe --out-dir D:\DAVE_Workspace\Dave2\sonar_out make clean all
cd …
sonar-scanner

How do I get the error level of the make call now?

Best regards

Volker

Hi @vokuit00,

build-wrapper-win-x86-64.exe returns the error code of the child process which means you don’t have to make any other change to your script, %ERRORLEVEL% is still the error code you have to check.