1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-09 20:23:51 +03:00

r12533: Get the ldb.errstring() out to the user on failure. It helps a lot

with debugging!

Andrew Bartlett
This commit is contained in:
Andrew Bartlett
2005-12-28 03:57:26 +00:00
committed by Gerald (Jerry) Carter
parent 3016c7ee13
commit fe36cb6767

View File

@@ -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);
}
}
/*