diff options
author | albert-github <albert.tests@gmail.com> | 2020-06-12 11:35:46 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-06-12 11:35:46 (GMT) |
commit | e6a6e65d46196125a5baad4aeb1942aa043236fa (patch) | |
tree | f86c40c50b6791541ebdc4ba45a3e06b7deb6b3c /src/template.cpp | |
parent | fa4e3f5f955e602f02545e049361510f3334cfff (diff) | |
download | Doxygen-e6a6e65d46196125a5baad4aeb1942aa043236fa.zip Doxygen-e6a6e65d46196125a5baad4aeb1942aa043236fa.tar.gz Doxygen-e6a6e65d46196125a5baad4aeb1942aa043236fa.tar.bz2 |
Catch all wrong mkdir calls (coverity)
- Always catch the output of `mkdir`
- corrected an incorrect message (context.cpp)
Diffstat (limited to 'src/template.cpp')
-rw-r--r-- | src/template.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/template.cpp b/src/template.cpp index 1763eec..c836c6b 100644 --- a/src/template.cpp +++ b/src/template.cpp @@ -2843,7 +2843,11 @@ template<class T> class TemplateNodeCreator : public TemplateNode if (d.exists()) { bool ok = d.mkdir(fileName.mid(j,i-j)); - if (!ok) break; + if (!ok) + { + err("Failed to create directory '%s'\n",(fileName.mid(j,i-j)).data()); + break; + } QCString dirName = outputDir+'/'+fileName.left(i); d = QDir(dirName); j = i+1; |