From 495571b649deec07e80a5b21e7081351dc623e7b Mon Sep 17 00:00:00 2001 From: Michal Zidek Date: Wed, 3 Oct 2012 12:26:05 +0200 Subject: sss_seed: Improved error message when the domain does not exist. https://fedorahosted.org/sssd/ticket/1553 --- src/tools/sss_seed.c | 7 +++++-- 1 file 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; } -- cgit