From 679e67f319974dfdd23371798ef94d441ce195cd Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 28 Jul 2009 14:02:01 +0200 Subject: Improve error messages Fixes: * RHBZ 513282 - Error Message Incorrect when Trying to add Group with GID already in use * RHBZ 513284 - Error Message Incorrect when Trying to add User with UID already in use * RHBZ 513242 - Better error Message when modifying a user that doesn't exist * RHBZ 513244 - Better error Message when adding a user to a group that doesn't exist --- server/tools/sss_useradd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tools/sss_useradd.c') diff --git a/server/tools/sss_useradd.c b/server/tools/sss_useradd.c index 2880182c..b2841798 100644 --- a/server/tools/sss_useradd.c +++ b/server/tools/sss_useradd.c @@ -516,13 +516,13 @@ int main(int argc, const char **argv) ret = data->error; switch (ret) { case EEXIST: - ERROR("The user %s already exists\n", data->name); + ERROR("A user with the same name or UID already exists\n"); break; default: DEBUG(1, ("sysdb operation failed (%d)[%s]\n", ret, strerror(ret))); - ERROR("Transaction error. Could not modify user.\n"); + ERROR("Transaction error. Could not add user.\n"); break; } ret = EXIT_FAILURE; -- cgit