Commit c6176845 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Merge pull request #233 from albert-github/feature/bug_cite_perl

Generate error message in case bibtex generation fails
parents e446e2e0 f121923b
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment