summaryrefslogtreecommitdiff
path: root/lib/ldb/common
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-10-18 11:30:52 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-10-18 13:13:34 +1100
commit9d49945ff037e46f5083dc88816acafc2343a77c (patch)
tree9fc5decdf5a434226a7def0bbb04489afb2e9b42 /lib/ldb/common
parent94fbe2e4bdab8bcd021fedfff71114bbf3d72ca1 (diff)
downloadsamba-9d49945ff037e46f5083dc88816acafc2343a77c.tar.gz
samba-9d49945ff037e46f5083dc88816acafc2343a77c.tar.bz2
samba-9d49945ff037e46f5083dc88816acafc2343a77c.zip
ldb: Output more error information when a connect fails
Diffstat (limited to 'lib/ldb/common')
-rw-r--r--lib/ldb/common/ldb_modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ldb/common/ldb_modules.c b/lib/ldb/common/ldb_modules.c
index 61d1901513..c8a53e2a05 100644
--- a/lib/ldb/common/ldb_modules.c
+++ b/lib/ldb/common/ldb_modules.c
@@ -218,7 +218,7 @@ int ldb_module_connect_backend(struct ldb_context *ldb,
if (ret != LDB_SUCCESS) {
ldb_debug(ldb, LDB_DEBUG_ERROR,
- "Failed to connect to '%s' with backend '%s'", url, be->ops->name);
+ "Failed to connect to '%s' with backend '%s': %s", url, be->ops->name, ldb_errstring(ret));
return ret;
}
return ret;