From 355481ff2f7dff969f83b46fb41fc9e78cf88058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20H=C3=A4rdeman?= Date: Thu, 20 Mar 2008 01:06:37 +0100 Subject: Fix unhelpful error messages (thanks to bug report forwarded by Joey Hess ) --- metaentry.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/metaentry.c b/metaentry.c index 50ae7b6..0277c28 100644 --- a/metaentry.c +++ b/metaentry.c @@ -194,15 +194,15 @@ mentry_create(const char *path) pbuf = xgetpwuid(sbuf.st_uid); if (!pbuf) { - msg(MSG_ERROR, "getpwuid failed for %i: %s\n", - (int)sbuf.st_uid, strerror(errno)); + msg(MSG_ERROR, "getpwuid failed for %s: uid %i not found\n", + path, (int)sbuf.st_uid); return NULL; } gbuf = xgetgrgid(sbuf.st_gid); if (!gbuf) { - msg(MSG_ERROR, "getgrgid failed for %i: %s\n", - (int)sbuf.st_gid, strerror(errno)); + msg(MSG_ERROR, "getgrgid failed for %s: gid %i not found\n", + path, (int)sbuf.st_gid); return NULL; } -- cgit v1.2.1