summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common/ldb_modules.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-03-08 06:23:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:49:24 -0500
commit3370f2f2d7e5296e8f54f721003c07fac111d1ad (patch)
tree8149619a220e76f7904d04b163e792dac50749ad /source4/lib/ldb/common/ldb_modules.c
parentf80d21069b7e22fbe8abdd59e7acb748f0a6b1ce (diff)
downloadsamba-3370f2f2d7e5296e8f54f721003c07fac111d1ad.tar.gz
samba-3370f2f2d7e5296e8f54f721003c07fac111d1ad.tar.bz2
samba-3370f2f2d7e5296e8f54f721003c07fac111d1ad.zip
r21761: - Give more detail on LDAP client library failures (make it clear
where the error is from) - Make default error string more consistant Andrew Bartlett (This used to be commit 7f115579d20a3112efd11444fafcbf78698fc9a1)
Diffstat (limited to 'source4/lib/ldb/common/ldb_modules.c')
-rw-r--r--source4/lib/ldb/common/ldb_modules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c
index 59a2713df8..e10332a0e1 100644
--- a/source4/lib/ldb/common/ldb_modules.c
+++ b/source4/lib/ldb/common/ldb_modules.c
@@ -432,7 +432,7 @@ int ldb_next_request(struct ldb_module *module, struct ldb_request *request)
}
if (!ldb_errstring(module->ldb)) {
/* Set a default error string, to place the blame somewhere */
- ldb_asprintf_errstring(module->ldb, "error in module %s: %s", module->ops->name, ldb_strerror(ret));
+ ldb_asprintf_errstring(module->ldb, "error in module %s: %s (%d)", module->ops->name, ldb_strerror(ret), ret);
}
return ret;
}