r20457: Print more information before asserting
authorAndrew Bartlett <abartlet@samba.org>
Tue, 2 Jan 2007 03:36:02 +0000 (03:36 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:35:50 +0000 (14:35 -0500)
(This used to be commit 0b7a5b7284f7820e5b2f48f40e85830243189b58)

testprogs/ejs/samba3sam.js

index 076d4343603cd2c03ba29cee2e43be657cf07810..4c6f14b7b16531864c91411c83f2be80b4d37b63 100755 (executable)
@@ -114,7 +114,6 @@ showInAdvancedViewOnly: TRUE
                println(ldb.errstring());
                assert(ok);
        }
-       assert(ok);
 
        println("Checking for existence of record (local)");
        /* TODO: This record must be searched in the local database, which is currently only supported for base searches
@@ -288,7 +287,10 @@ description: y
        ldif = substitute_var(ldif, s4);
        assert(ldif != undefined);
        var ok = ldb.add(ldif);
-       assert(ok);
+       if (!ok) {
+               println(ldb.errstring());
+               assert(ok);
+       }
 
        /* Add a set of remote records */
        var ldif = "