commit 44d56764305fee8fcea79cb48682682bffd17f4d
Author: Juergen Spitzmueller <[email protected]>
Date:   Thu Feb 17 07:25:00 2022 +0100

    Report if index processor failed (#7820)
---
 src/LaTeX.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp
index 7734b02..c4dd18e 100644
--- a/src/LaTeX.cpp
+++ b/src/LaTeX.cpp
@@ -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);
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to