git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fb9541
)
r12533: Get the ldb.errstring() out to the user on failure. It helps a lot
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 28 Dec 2005 03:57:26 +0000
(
03:57
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:47:52 +0000
(13:47 -0500)
with debugging!
Andrew Bartlett
(This used to be commit
fe36cb6767ce99432e2778037aad334170dca173
)
source4/scripting/libjs/provision.js
patch
|
blob
|
history
diff --git
a/source4/scripting/libjs/provision.js
b/source4/scripting/libjs/provision.js
index 4cd9e5fa8dd6a1f976c34daa63d27c6dd4fe2ddf..f26c69d15e565748ef4f9cc1fa514febf02ca5f7 100644
(file)
--- a/
source4/scripting/libjs/provision.js
+++ b/
source4/scripting/libjs/provision.js
@@
-207,8
+207,15
@@
function setup_ldb(ldif, dbname, subobj)
}
var add_ok = ldb.add(data);
- assert(add_ok);
- ldb.transaction_commit();
+ if (!add_ok) {
+ message("ldb load failed: " + ldb.errstring() + "\n");
+ assert(add_ok);
+ }
+ var commit_ok = ldb.transaction_commit();
+ if (!commit_ok) {
+ message("ldb commit failed: " + ldb.errstring() + "\n");
+ assert(add_ok);
+ }
}
/*