summaryrefslogtreecommitdiff
path: root/tools/lpgen
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lpgen')
-rw-r--r--tools/lpgen/refresher.bat9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/lpgen/refresher.bat b/tools/lpgen/refresher.bat
index efc6c156d0..062e01e185 100644
--- a/tools/lpgen/refresher.bat
+++ b/tools/lpgen/refresher.bat
@@ -53,7 +53,7 @@ if "%err%"=="1" (
echo.
pause
- goto end
+ exit /B 1
)
REM =========================
@@ -82,6 +82,13 @@ if "%phase%" == "0" (
cscript /nologo translate.js /out:".\" /untranslated:"Untranslated" /release:"Langpack_%language%.txt" /sourcelang:"%language%"
)
+REM if previous command failed, exit
+if %ERRORLEVEL% NEQ 0 (
+ echo ERROR: Refreshing failed!
+ pause
+ exit /B 1
+)
+
rmdir /S /Q "..\..\langpacks\%language%\Weather"
rmdir /S /Q "..\..\langpacks\%language%\Plugins"
rmdir /S /Q "..\..\langpacks\%language%\Untranslated"