From e94e09dd7b16e9897c76809697e506c5c97851d4 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Thu, 27 Feb 2025 11:36:25 -0800 Subject: [PATCH] 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 --- lib/dll/example/build_package.bat | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dll/example/build_package.bat b/lib/dll/example/build_package.bat index 65ce367c2..4c9ffa049 100644 --- a/lib/dll/example/build_package.bat +++ b/lib/dll/example/build_package.bat @@ -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% -- 2.47.3