From bd02aca24286e8893a1064419ed8c37a5f1f5515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 7 May 2018 07:10:00 +0200 Subject: [PATCH] daca2: if there is a crash then try to show which file it was caused by --- tools/daca2.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/daca2.py b/tools/daca2.py index 26e4c4543..478838a30 100644 --- a/tools/daca2.py +++ b/tools/daca2.py @@ -163,6 +163,10 @@ def scanarchive(filepath, jobs, cpulimit): if p.returncode == 0: logging.info(comm[1] + strfCurrTime('[%H:%M]')) elif 'cppcheck: error: could not find or open any of the paths given.' not in comm[0]: + stdout = comm[0] + pos1 = stdout.rfind('Checking ') + if pos1 > 0: + logging.error(stdout[pos1:]) logging.error(comm[1] + strfCurrTime('[%H:%M]')) logging.error('Exit code is not zero! Crash?\n')