summaryrefslogtreecommitdiffstats
path: root/src/cite.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2014-10-10 17:12:32 (GMT)
committeralbert-github <albert.tests@gmail.com>2014-10-10 17:12:32 (GMT)
commitf121923bde72ef68616224a3fa1c1fe27eeb385e (patch)
tree827efdd3b680aad8bebc2ae8dccd3448ea061d84 /src/cite.cpp
parent4df52916170bb81179697d0fa78c7d81fd95415f (diff)
downloadDoxygen-f121923bde72ef68616224a3fa1c1fe27eeb385e.zip
Doxygen-f121923bde72ef68616224a3fa1c1fe27eeb385e.tar.gz
Doxygen-f121923bde72ef68616224a3fa1c1fe27eeb385e.tar.bz2
Generate error message in case bibtex generation fails
In case bibtex fails no message is given. When perl is missing the OS just emits an message. With this patch doxygen logs a message (analogous to other calls to portable_system)
Diffstat (limited to 'src/cite.cpp')
-rw-r--r--src/cite.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/cite.cpp b/src/cite.cpp
index fb96c7a..42374d0 100644
--- a/src/cite.cpp
+++ b/src/cite.cpp
@@ -211,8 +211,15 @@ void CiteDict::generatePage() const
// 5. run bib2xhtml perl script on the generated file which will insert the
// bibliography in citelist.doc
- portable_system("perl","\""+bib2xhtmlFile+"\" "+bibOutputFiles+" \""+
- citeListFile+"\"");
+ int exitCode;
+ portable_sysTimerStop();
+ if ((exitCode=portable_system("perl","\""+bib2xhtmlFile+"\" "+bibOutputFiles+" \""+
+ citeListFile+"\"")) != 0)
+ {
+ err("Problems running bibtex. Verify that the command 'perl --version' works from the command line. Exit code: %d\n",
+ exitCode);
+ }
+ portable_sysTimerStop();
QDir::setCurrent(oldDir);