summaryrefslogtreecommitdiffstats
path: root/src/latexgen.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2019-12-22 15:43:21 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2019-12-22 15:43:21 (GMT)
commit0ea72fdd522e6bc3bc442e7d2ae40e7607546e55 (patch)
treef6db48d3500b0c68464be9fe92ca1eb8a193427b /src/latexgen.cpp
parent369c65635de29af6fd92c835879d70fdac7d2270 (diff)
parent146bec22e9ff91e8274becd719149f7ab9c7cfb9 (diff)
downloadDoxygen-0ea72fdd522e6bc3bc442e7d2ae40e7607546e55.zip
Doxygen-0ea72fdd522e6bc3bc442e7d2ae40e7607546e55.tar.gz
Doxygen-0ea72fdd522e6bc3bc442e7d2ae40e7607546e55.tar.bz2
Merge branch 'feature/bug_terminate' of https://github.com/albert-github/doxygen into albert-github-feature/bug_terminate
Diffstat (limited to 'src/latexgen.cpp')
-rw-r--r--src/latexgen.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/latexgen.cpp b/src/latexgen.cpp
index b7eefe3..27be5b3 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();