[Builder] Improve error handling

This commit is contained in:
2026-02-23 09:33:42 +01:00
parent 7f35d4f340
commit 8c49eb6ed4

View File

@@ -38,9 +38,9 @@ echo "
Compiling document using latexmk with extra arguments: $EXTRA_ARGS Compiling document using latexmk with extra arguments: $EXTRA_ARGS
" "
latexmk -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode -shell-escape $EXTRA_ARGS > /tmp/log.txt latexmk -pdf -latexoption=-file-line-error -latexoption=-interaction=nonstopmode -shell-escape $EXTRA_ARGS >/tmp/log.txt || compile_fail=1
if [ $? != 0 ]; then if [ ${compile_fail:-0} -eq 1 ]; then
cat /tmp/log.txt cat /tmp/log.txt
echo " echo "
==> Compile has failed. See log above ==> Compile has failed. See log above