summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-30 11:06:13 +1100
committerAndrew Tridgell <tridge@samba.org>2010-10-30 23:49:00 +1100
commit170c255f09a3d629bba86cf62c6a0cf81ff81bf1 (patch)
treea9c8558eb4abb829e48b10f8821081ef99154ec9 /buildtools
parentd1e94980bf76a7dc07b01979c5d263fc32dccbf8 (diff)
downloadsamba-170c255f09a3d629bba86cf62c6a0cf81ff81bf1.tar.gz
samba-170c255f09a3d629bba86cf62c6a0cf81ff81bf1.tar.bz2
samba-170c255f09a3d629bba86cf62c6a0cf81ff81bf1.zip
waf: use Utils.WafError() instead of raising an AssertionError
this produces clearer output on errors
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_utils.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py
index de630fedee..a25393b89d 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -102,8 +102,7 @@ def LOCAL_CACHE_SET(ctx, cachename, key, value):
def ASSERT(ctx, expression, msg):
'''a build assert call'''
if not expression:
- Logs.error("ERROR: %s\n" % msg)
- raise AssertionError
+ raise Utils.WafError("ERROR: %s\n" % msg)
Build.BuildContext.ASSERT = ASSERT