Improve error message when LaTeX process is killed.

This commit is contained in:
Richard Heck 2017-12-22 21:55:43 -05:00
parent eb6ec4246b
commit 176eee2420

View File

@ -820,6 +820,12 @@ bool Converters::runLaTeX(Buffer const & buffer, string const & command,
});
int const result = latex.run(terr);
if (result == Systemcall::KILLED) {
Alert::error(_("Export canceled"),
_("The export process was terminated by the user."));
return result;
}
if (result & LaTeX::ERRORS)
buffer.bufferErrors(terr, errorList);