From 170c255f09a3d629bba86cf62c6a0cf81ff81bf1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 30 Oct 2010 11:06:13 +1100 Subject: waf: use Utils.WafError() instead of raising an AssertionError this produces clearer output on errors --- buildtools/wafsamba/samba_utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'buildtools/wafsamba/samba_utils.py') 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 -- cgit