From a7595d009a89fecd7723a1e356d5a58d687bdbb0 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 5 Dec 2007 01:25:39 +0100 Subject: [PATCH] r26302: Print the error string for failed rootdse searches. Andrew Bartlett --- source/scripting/libjs/provision.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/scripting/libjs/provision.js b/source/scripting/libjs/provision.js index b42f3b2580e..e7e844bb89a 100644 --- a/source/scripting/libjs/provision.js +++ b/source/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;