Scott Kostyshak
2014-09-12 12:53:00 UTC
Systemcall::startscript returns the exit code of the LaTeX command
that is run, but the return value was not being checked by
LaTeX::run. It is now checked and if the exit code is non-zero,
it is returned immediately.
At a higher level, if the LaTeX command returns a non-zero
exit code, in the GUI a message such as "Error while exporting
format: PDF (LuaTeX)" is given instead of "Successful preview
of format: PDF (LuaTeX)" followed by the attempt to open an
incomplete/missing .pdf file.
When run on the commandline, lyx -e lualatex example.lyx now
gives "Error: LaTeX failed" and a non-zero exit code where before
it gave a zero exit code.
Any thoughts? See my other email for a use case.
Scott
that is run, but the return value was not being checked by
LaTeX::run. It is now checked and if the exit code is non-zero,
it is returned immediately.
At a higher level, if the LaTeX command returns a non-zero
exit code, in the GUI a message such as "Error while exporting
format: PDF (LuaTeX)" is given instead of "Successful preview
of format: PDF (LuaTeX)" followed by the attempt to open an
incomplete/missing .pdf file.
When run on the commandline, lyx -e lualatex example.lyx now
gives "Error: LaTeX failed" and a non-zero exit code where before
it gave a zero exit code.
Any thoughts? See my other email for a use case.
Scott