summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-01-07 12:19:42 +1100
committerAndrew Tridgell <tridge@samba.org>2010-01-08 13:03:04 +1100
commit73838b353aadd221f011e42c1225bcd5cc07dc9d (patch)
treee0802d8db36b80dd14a48ec00ea8f1eea04d22ce /source4
parent9871f52bd318b492e6e6ebb525789d7dbc6eac65 (diff)
downloadsamba-73838b353aadd221f011e42c1225bcd5cc07dc9d.tar.gz
samba-73838b353aadd221f011e42c1225bcd5cc07dc9d.tar.bz2
samba-73838b353aadd221f011e42c1225bcd5cc07dc9d.zip
s4-libnet: better error messages in libnet_vampire.c
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/libnet_vampire.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libnet/libnet_vampire.c b/source4/libnet/libnet_vampire.c
index fa7e0bf179..37a9d7e72d 100644
--- a/source4/libnet/libnet_vampire.c
+++ b/source4/libnet/libnet_vampire.c
@@ -720,7 +720,7 @@ NTSTATUS libnet_Vampire(struct libnet_context *ctx, TALLOC_CTX *mem_ctx,
printf("mark ROOTDSE with isSynchronized=TRUE\n");
ldb_ret = ldb_modify(s->ldb, msg);
if (ldb_ret != LDB_SUCCESS) {
- printf("ldb_modify() failed: %d\n", ldb_ret);
+ printf("ldb_modify() failed: %d : %s\n", ldb_ret, ldb_errstring(s->ldb));
talloc_free(s);
return NT_STATUS_INTERNAL_DB_ERROR;
}
@@ -730,7 +730,7 @@ NTSTATUS libnet_Vampire(struct libnet_context *ctx, TALLOC_CTX *mem_ctx,
triggers the writing of the linked attribute backlinks.
*/
if (ldb_transaction_prepare_commit(s->ldb) != LDB_SUCCESS) {
- printf("Failed to prepare_commit vampire transaction\n");
+ printf("Failed to prepare_commit vampire transaction: %s\n", ldb_errstring(s->ldb));
return NT_STATUS_INTERNAL_DB_ERROR;
}