diff options
author | albert-github <albert.tests@gmail.com> | 2019-11-22 13:56:50 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2019-11-22 13:56:50 (GMT) |
commit | 146bec22e9ff91e8274becd719149f7ab9c7cfb9 (patch) | |
tree | cf306ab8fce7c29a7fc8db53f0a16d55120a2507 /src/latexgen.cpp | |
parent | e7d47ec23ba1b109754d6e47b1eb4d341efc3b36 (diff) | |
download | Doxygen-146bec22e9ff91e8274becd719149f7ab9c7cfb9.zip Doxygen-146bec22e9ff91e8274becd719149f7ab9c7cfb9.tar.gz Doxygen-146bec22e9ff91e8274becd719149f7ab9c7cfb9.tar.bz2 |
Better termination message
In case a `WARN_LOGFILE` is used it in this file no clear whether doxygen finished correctly or exited beforehand in case a fatal error.
Now a 'Exiting...' is also given in the warning log file in case an error is a fatal error.
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r-- | src/latexgen.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 094232f..bd86038 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -288,8 +288,7 @@ static void writeLatexMakefile() QFile file(fileName); if (!file.open(IO_WriteOnly)) { - err("Could not open file %s for writing\n",fileName.data()); - exit(1); + term(1,"Could not open file %s for writing\n",fileName.data()); } // inserted by KONNO Akihisa <konno@researchers.jp> 2002-03-05 QCString latex_command = theTranslator->latexCommandName(); @@ -387,8 +386,7 @@ static void writeMakeBat() bool generateBib = !Doxygen::citeDict->isEmpty(); if (!file.open(IO_WriteOnly)) { - err("Could not open file %s for writing\n",fileName.data()); - exit(1); + term(1,"Could not open file %s for writing\n",fileName.data()); } FTextStream t(&file); t << "set Dir_Old=%cd%\n"; @@ -468,8 +466,7 @@ void LatexGenerator::init() QDir d(dir); if (!d.exists() && !d.mkdir(dir)) { - err("Could not create output directory %s\n",dir.data()); - exit(1); + term(1,"Could not create output directory %s\n",dir.data()); } writeLatexMakefile(); |