From d8b91031116b81ae10e2a0fc568ccbf88052e0f3 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 5 Dec 2007 01:25:39 +0100 Subject: r26302: Print the error string for failed rootdse searches. Andrew Bartlett (This used to be commit a7595d009a89fecd7723a1e356d5a58d687bdbb0) --- source4/scripting/libjs/provision.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/scripting') 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; -- cgit