diff --git a/build/init.cmd b/build/init.cmd index fafef12..a7d1769 100644 --- a/build/init.cmd +++ b/build/init.cmd @@ -8,5 +8,18 @@ mkdir dist-azaion echo Copying shared libs robocopy "C:\\share" "dist-dlls" "*" +set RC=%ERRORLEVEL% -popd \ No newline at end of file +if %RC% EQU 1 ( + echo All files copied successfully. + popd + exit /b 1 +) else if %RC% LSS 8 ( + echo Robocopy returned %RC% (acceptable non-error code), but not perfect copy. + popd + exit /b 0 +) else ( + echo Robocopy failed with code %RC%. + popd + exit /b %RC% +) \ No newline at end of file