From: Yann Collet Date: Thu, 27 Feb 2025 19:36:25 +0000 (-0800) Subject: ensure that a copy error results in the task failing clearly X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e94e09dd7b16e9897c76809697e506c5c97851d4;p=thirdparty%2Fzstd.git 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 --- 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%