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:
caa4bfc
)
r18248: Bail out with a error message if this search fails for some reason.
author
Andrew Bartlett
<abartlet@samba.org>
Fri, 8 Sep 2006 04:36:00 +0000
(
04:36
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:17:55 +0000
(14:17 -0500)
Andrew Bartlett
(This used to be commit
77b810f548fffc1298978cc92c842f5e4fc13786
)
source4/scripting/libjs/provision.js
patch
|
blob
|
history
diff --git
a/source4/scripting/libjs/provision.js
b/source4/scripting/libjs/provision.js
index ea0f138260b48e36deb0033e9e6fad258fe7d0dd..952112b3ae5ddf59e570453848bc3eba5174490e 100644
(file)
--- a/
source4/scripting/libjs/provision.js
+++ b/
source4/scripting/libjs/provision.js
@@
-224,6
+224,10
@@
function ldb_erase_partitions(info, ldb)
}
var res3 = ldb.search("(|(objectclass=*)(dn=*))", basedn, ldb.SCOPE_SUBTREE, attrs);
+ if (typeof(res3) == "undefined") {
+ info.message("ldb search failed: " + ldb.errstring() + "\n");
+ continue;
+ }
if (res3.length != 0) {
info.message("Failed to delete all records under " + basedn + ", " + res3.length + " records remaining\n");
}