From: Andrew Tridgell Date: Wed, 9 Feb 2011 04:54:07 +0000 (+1100) Subject: waf: use Utils.WafError() instead of sys.exit(1) X-Git-Tag: tevent-0.9.11~543 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a7ee6e81fffc92d85dca26ae236e339e7d7eb83e;p=thirdparty%2Fsamba.git waf: use Utils.WafError() instead of sys.exit(1) better to raise an expection than just exiting --- diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py index 188c2dd75f3..02f23183e72 100644 --- a/buildtools/wafsamba/samba_deps.py +++ b/buildtools/wafsamba/samba_deps.py @@ -288,8 +288,7 @@ def check_duplicate_sources(bld, tgt_list): Logs.warn("WARNING: source %s is in more than one target: %s" % (s, subsystems[s].keys())) for tname in subsystems[s]: if len(subsystems[s][tname]) > 1: - Logs.error("ERROR: source %s is in more than one subsystem of target '%s': %s" % (s, tname, subsystems[s][tname])) - sys.exit(1) + raise Utils.WafError("ERROR: source %s is in more than one subsystem of target '%s': %s" % (s, tname, subsystems[s][tname])) return ret