diff --git a/src/confdb/confdb.c b/src/confdb/confdb.c index a7344e1668f..8c6aed9feef 100644 --- a/src/confdb/confdb.c +++ b/src/confdb/confdb.c @@ -696,8 +696,8 @@ int confdb_init(TALLOC_CTX *mem_ctx, sss_restore_sssd_user_eid(); umask(old_umask); if (ret != LDB_SUCCESS) { - DEBUG(SSSDBG_FATAL_FAILURE, "Unable to open config database [%s]\n", - confdb_location); + DEBUG(SSSDBG_FATAL_FAILURE, "Unable to open config database [%s] - %d\n", + confdb_location, ret); talloc_free(cdb); return EIO; } diff --git a/src/tools/sss_cache.c b/src/tools/sss_cache.c index 79de13ac872..91373eda673 100644 --- a/src/tools/sss_cache.c +++ b/src/tools/sss_cache.c @@ -919,7 +919,7 @@ static errno_t init_context(int argc, const char *argv[], "--domain/-d parameter.\n", values.domain); ret = ERR_DOMAIN_NOT_FOUND; } else { - ERROR("Could not open available domains\n"); + ERROR("Could not open available domains: %d\n", ret); } DEBUG(SSSDBG_OP_FAILURE, "Initialization of sysdb connections failed\n");