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:
@@ -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%
|
||||
|
||||
Reference in New Issue
Block a user