[Builder] Improve error handling
This commit is contained in:
@@ -38,9 +38,9 @@ echo "
|
||||
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
|
||||
echo "
|
||||
==> Compile has failed. See log above
|
||||
|
||||
Reference in New Issue
Block a user