summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-15 22:00:48 +0200
committerDavid Robillard <d@drobilla.net>2020-10-15 22:00:48 +0200
commit428851d866307e12735663d6418d36d7ae30983e (patch)
treef6654dc83e3a48d88974c4205923863e3713258d
parent6321098e6b5b5c684d26a4de49c916733c5ea942 (diff)
downloadautowaf-428851d866307e12735663d6418d36d7ae30983e.tar.gz
autowaf-428851d866307e12735663d6418d36d7ae30983e.tar.bz2
autowaf-428851d866307e12735663d6418d36d7ae30983e.zip
Print exceptions
-rw-r--r--extras/autowaf.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/extras/autowaf.py b/extras/autowaf.py
index 4e2d688..6e6a557 100644
--- a/extras/autowaf.py
+++ b/extras/autowaf.py
@@ -622,8 +622,8 @@ def configure(conf):
lib='gcov',
mandatory=False):
conf.env.HAVE_GCOV = True
- except Exception:
- pass # Test options do not exist
+ except Exception as e:
+ Logs.error("error: %s" % e)
# Define version in configuration
appname = getattr(Context.g_module, Context.APPNAME, 'noname')
@@ -1362,8 +1362,8 @@ class TestContext(Build.BuildContext):
subprocess.call(['lcov', '-z', '-d', str(self.path)],
stdout=log, stderr=log)
- except Exception:
- Logs.warn('Failed to run lcov to clear old coverage data')
+ except Exception as e:
+ Logs.warn('Failed to run lcov to clear old coverage data (%s)' % e)
def gen_coverage(self):
"""Generate coverage data and report"""
@@ -1400,8 +1400,8 @@ class TestContext(Build.BuildContext):
'COVERAGE', '%s%% lines, %s%% functions, %s%% branches',
lines, functions, branches)
- except Exception:
- Logs.warn('Failed to run lcov to generate coverage report')
+ except Exception as e:
+ Logs.warn('Failed to run lcov to generate coverage report (%s)')
class TestGroup: