Skip to content

Commit 582804d

Browse files
committed
Added error codes in case of Update or Critical Error
1 parent 4483aa5 commit 582804d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

batch encoder.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ echo  Completed encoding %TOTAL% files. %formatend%
217217
call:ErrorLine
218218
echo.
219219
echo A critical error occurred. The latest file has not been modified.
220+
if /i "%par_silent%"=="true" (exit /b 3)
220221
goto EndPause
221222

222223
:AutoUpdateError
@@ -227,6 +228,7 @@ echo  Completed encoding %TOTAL% files. %formatend%
227228
echo There was a problem with the auto-updater. You can download the latest version of the program at:
228229
echo https://github.com/Adam-Kay/Batch-Encoder/releases
229230
echo.
231+
if /i "%par_silent%"=="true" (exit /b 2)
230232
echo The program will now restart.
231233
call:GrayPause
232234
goto AskProceed

0 commit comments

Comments
 (0)