1
0
mirror of https://github.com/facebook/zstd.git synced 2025-03-06 16:56:49 +02:00

ensure that a copy error results in the task failing clearly

error code != 0, red status

checked by intentionally inserting an error in another run
This commit is contained in:
Yann Collet 2025-02-27 11:36:25 -08:00
parent 017ada44b5
commit e94e09dd7b

View File

@ -23,6 +23,7 @@ COPY programs\zstd.exe bin\zstd.exe || (SET CpyError=%CpyError% programs\zstd.ex
IF "[%CpyError%]" == "[]" goto :EOF
:error
SET errorlevel=1
echo Failed with error #%errorlevel%: unable to copy following files:
echo %CpyError%
exit /b %errorlevel%