From 42fcb90e7239ee8edb9b8fd3aeca7d7089952d0e Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 2 Jan 2007 03:36:02 +0000 Subject: r20457: Print more information before asserting (This used to be commit 0b7a5b7284f7820e5b2f48f40e85830243189b58) --- testprogs/ejs/samba3sam.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testprogs/ejs/samba3sam.js b/testprogs/ejs/samba3sam.js index 076d434360..4c6f14b7b1 100755 --- a/testprogs/ejs/samba3sam.js +++ b/testprogs/ejs/samba3sam.js @@ -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 = " -- cgit