Add comment

This commit is contained in:
Scott Kostyshak 2015-11-18 21:33:44 -05:00
parent 2811f76039
commit 6f207b37ed

View File

@ -407,8 +407,12 @@ int LaTeX::run(TeXErrors & terr)
// Write the dependencies to file.
head.write(depfile);
if (exit_code)
if (exit_code) {
// add flag here, just before return, instead of when exit_code
// is defined because scanres is sometimes overwritten above
// (e.g. rerun)
scanres |= NONZERO_ERROR;
}
LYXERR(Debug::LATEX, "Done.");