wafsamba: Improve assertion error message to include the module.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 14 Jun 2010 23:00:40 +0000 (01:00 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 15 Jun 2010 11:15:50 +0000 (13:15 +0200)
buildtools/wafsamba/samba_deps.py

index d00fe7f4e56a650ff82c8283ca6d955c79110b2a..94b7484def7a27ecf7e7ba38f5b8b6dfc1113700 100644 (file)
@@ -55,10 +55,11 @@ def expand_subsystem_deps(bld):
             continue
 
         t = bld.name_to_obj(s, bld.env)
-        bld.ASSERT(t is not None, "Subsystem target %s not found" % s)
         for d in subsystems[s]:
             type = targets[d['TARGET']]
             if type != 'DISABLED' and type != 'EMPTY':
+                bld.ASSERT(t is not None,
+                    "Subsystem target %s for %s (%s) not found" % (s, d['TARGET'], type))
                 t.samba_deps_extended.append(d['TARGET'])
                 t2 = bld.name_to_obj(d['TARGET'], bld.env)
                 t2.samba_includes_extended.extend(t.samba_includes_extended)