summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tools/sss_seed.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tools/sss_seed.c b/src/tools/sss_seed.c
index 9b1471d7..18d0b9d0 100644
--- a/src/tools/sss_seed.c
+++ b/src/tools/sss_seed.c
@@ -632,8 +632,11 @@ static int seed_init_db(TALLOC_CTX *mem_ctx,
DB_PATH, &domain, &sysdb);
if (ret != EOK) {
DEBUG(SSSDBG_CRIT_FAILURE,
- ("Could not initialize connection to the sysdb\n"));
- ERROR("Could not initialize the connection to the sysdb\n");
+ ("Could not initialize connection to domain '%s' in sysdb.%s\n",
+ domain_name, ret == ENOENT ? " Domain not found." : ""));
+ ERROR("Could not initialize connection to domain '%1$s' in sysdb.%2$s\n",
+ domain_name, ret == ENOENT ? " Domain not found." : "");
+
goto done;
}