diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-11-05 14:10:30 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-11-05 23:42:08 +1100 |
commit | 0a2642c7dc8589c2fc8524e370a2cfeb3064eb28 (patch) | |
tree | 39364fd70a07fd915ef7222729102ff72ce857bf /source4/lib/ldb | |
parent | 34ce183d6cefe7bb332693d65f48dd1c96d7b7f7 (diff) | |
download | samba-0a2642c7dc8589c2fc8524e370a2cfeb3064eb28.tar.gz samba-0a2642c7dc8589c2fc8524e370a2cfeb3064eb28.tar.bz2 samba-0a2642c7dc8589c2fc8524e370a2cfeb3064eb28.zip |
s4-ldb: show the reason for module initialization failure
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index 96e3fed7eb..7de7cca989 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -343,7 +343,8 @@ int ldb_module_init_chain(struct ldb_context *ldb, struct ldb_module *module) if (module) { int ret = module->ops->init_context(module); if (ret != LDB_SUCCESS) { - ldb_debug(ldb, LDB_DEBUG_FATAL, "module %s initialization failed", module->ops->name); + ldb_debug(ldb, LDB_DEBUG_FATAL, "module %s initialization failed : %s", + module->ops->name, ldb_strerror(ret)); return ret; } } |