summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2008-03-20 01:06:37 +0100
committerDavid Härdeman <david@hardeman.nu>2008-03-20 01:06:37 +0100
commit355481ff2f7dff969f83b46fb41fc9e78cf88058 (patch)
treed7d5df87ec53ed4f54b14d248d98e37c67f7b332
parent67400c7d3abb60cd71aac2b5ed91dbd129b86abe (diff)
Fix unhelpful error messages
(thanks to bug report forwarded by Joey Hess <joey@kitenet.net>)
-rw-r--r--metaentry.c8
1 files 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;
}