git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89144df
)
r26302: Print the error string for failed rootdse searches.
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 5 Dec 2007 00:25:39 +0000
(
01:25
+0100)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 21 Dec 2007 04:48:17 +0000
(
05:48
+0100)
Andrew Bartlett
(This used to be commit
a7595d009a89fecd7723a1e356d5a58d687bdbb0
)
source4/scripting/libjs/provision.js
patch
|
blob
|
history
diff --git
a/source4/scripting/libjs/provision.js
b/source4/scripting/libjs/provision.js
index b42f3b2580eeaa85f27fdf2f9ec6d36d94080b4e..e7e844bb89a388c3a302ad924f671c5d47f490f3 100644
(file)
--- 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;