summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2012-10-03 12:26:05 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-10-03 20:32:28 +0200
commit495571b649deec07e80a5b21e7081351dc623e7b (patch)
treea0a5494df5eb01c3e44760f0ecf7b92349122389 /src/tools
parentf0f2ac9ee5a0b83806899cc3636941acb87bbccf (diff)
downloadsssd-495571b649deec07e80a5b21e7081351dc623e7b.tar.gz
sssd-495571b649deec07e80a5b21e7081351dc623e7b.tar.bz2
sssd-495571b649deec07e80a5b21e7081351dc623e7b.zip
sss_seed: Improved error message when the domain does not exist.
https://fedorahosted.org/sssd/ticket/1553
Diffstat (limited to 'src/tools')
-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;
}