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 16:18:44 -08:00
parent 017ada44b5
commit e94e09dd7b
+1
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%