Report if index processor failed (#7820)

This commit is contained in:
Juergen Spitzmueller 2022-02-17 07:25:00 +01:00
parent 23b7b95e68
commit 44d5676430

View File

@ -432,6 +432,12 @@ int LaTeX::run(TeXErrors & terr)
runMakeIndex(onlyFileName(idxfile.absFileName()), runparams);
if (ret == Systemcall::KILLED || ret == Systemcall::TIMEOUT)
return ret;
else if (ret != Systemcall::OK) {
iscanres |= INDEX_ERROR;
terr.insertError(0,
_("Index Processor Error"),
_("The index processor did not run successfully. Please check the output of View > Messages!"));
}
FileName const ilgfile(changeExtension(file.absFileName(), ".ilg"));
if (ilgfile.exists())
iscanres = scanIlgFile(terr);