summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-12-05 01:25:39 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:48:17 +0100
commitd8b91031116b81ae10e2a0fc568ccbf88052e0f3 (patch)
tree601f0e1590b3d1d5a231b95a0862fbde98090d1f /source4
parent89144dfeade7d96527ebe5321ee0328662d81afd (diff)
downloadsamba-d8b91031116b81ae10e2a0fc568ccbf88052e0f3.tar.gz
samba-d8b91031116b81ae10e2a0fc568ccbf88052e0f3.tar.bz2
samba-d8b91031116b81ae10e2a0fc568ccbf88052e0f3.zip
r26302: Print the error string for failed rootdse searches.
Andrew Bartlett (This used to be commit a7595d009a89fecd7723a1e356d5a58d687bdbb0)
Diffstat (limited to 'source4')
-rw-r--r--source4/scripting/libjs/provision.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js
index b42f3b2580..e7e844bb89 100644
--- a/source4/scripting/libjs/provision.js
+++ b/source4/scripting/libjs/provision.js
@@ -198,7 +198,10 @@ function ldb_erase_partitions(info, ldb, ldapbackend)
var j;
var res = ldb.search("(objectClass=*)", "", ldb.SCOPE_BASE, rootDSE_attrs);
- assert(res.error == 0);
+ if (res.error != 0) {
+ info.message("rootdse search failed: " + res.errstr + "\n");
+ assert(res.error == 0);
+ }
assert(res.msgs.length == 1);
if (typeof(res.msgs[0].namingContexts) == "undefined") {
return;