summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c
index 857c995a0e..1022f422c0 100644
--- a/source4/lib/ldb/common/ldb.c
+++ b/source4/lib/ldb/common/ldb.c
@@ -214,7 +214,9 @@ static int ldb_transaction_start_internal(struct ldb_context *ldb)
if (ldb->err_string == NULL) {
/* no error string was setup by the backend */
ldb_set_errstring(ldb,
- talloc_asprintf(ldb, "ldb transaction start error %d", status));
+ talloc_asprintf(ldb, "ldb transaction start: %s (%d)",
+ ldb_strerror(status),
+ status));
}
}
return status;
@@ -236,7 +238,9 @@ static int ldb_transaction_commit_internal(struct ldb_context *ldb)
if (ldb->err_string == NULL) {
/* no error string was setup by the backend */
ldb_set_errstring(ldb,
- talloc_asprintf(ldb, "ldb transaction commit error %d", status));
+ talloc_asprintf(ldb, "ldb transaction commit: %s (%d)",
+ ldb_strerror(status),
+ status));
}
}
return status;
@@ -256,7 +260,9 @@ static int ldb_transaction_cancel_internal(struct ldb_context *ldb)
if (ldb->err_string == NULL) {
/* no error string was setup by the backend */
ldb_set_errstring(ldb,
- talloc_asprintf(ldb, "ldb transaction cancel error %d", status));
+ talloc_asprintf(ldb, "ldb transaction cancel: %s (%d)",
+ ldb_strerror(status),
+ status));
}
}
return status;