From 9d49945ff037e46f5083dc88816acafc2343a77c Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 18 Oct 2011 11:30:52 +1100 Subject: ldb: Output more error information when a connect fails --- lib/ldb/common/ldb_modules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ldb/common/ldb_modules.c') 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; -- cgit