Try to get error information upon crash in daca2 into log output

This commit is contained in:
Alexander Mai 2015-11-15 20:38:55 +01:00
parent 435a980ce2
commit 6cf7ff4243
1 changed files with 1 additions and 0 deletions

View File

@ -178,6 +178,7 @@ def scanarchive(filepath, jobs):
if p.returncode == 0: if p.returncode == 0:
results.write(comm[1]) results.write(comm[1])
elif comm[0].find('cppcheck: error: could not find or open any of the paths given.') < 0: elif comm[0].find('cppcheck: error: could not find or open any of the paths given.') < 0:
results.write(comm[1])
results.write('Exit code is not zero! Crash?\n') results.write('Exit code is not zero! Crash?\n')
results.write('\n') results.write('\n')
results.close() results.close()