summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-02-09 15:54:07 +1100
committerAndrew Tridgell <tridge@samba.org>2011-02-18 15:09:45 +1100
commita7ee6e81fffc92d85dca26ae236e339e7d7eb83e (patch)
treeefcb2bb7ed1ce04b5018b36992e521261abdb470
parent7720facd424b67cc9b49a5111a3b74df5129d3c1 (diff)
downloadsamba-a7ee6e81fffc92d85dca26ae236e339e7d7eb83e.tar.gz
samba-a7ee6e81fffc92d85dca26ae236e339e7d7eb83e.tar.bz2
samba-a7ee6e81fffc92d85dca26ae236e339e7d7eb83e.zip
waf: use Utils.WafError() instead of sys.exit(1)
better to raise an expection than just exiting
-rw-r--r--buildtools/wafsamba/samba_deps.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py
index 188c2dd75f..02f23183e7 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