summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-02-29 08:01:33 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-02-29 08:01:33 +0000
commit171d6ac0c3564b1faa523bf0380532ff25ed532c (patch)
treee32f8bc019f4faa6dc446feb1c61dc34e3f41d19
parent77ecb6d7f3ad8e9b41d9a5e926c64c4f087b706d (diff)
downloadmailutils-171d6ac0c3564b1faa523bf0380532ff25ed532c.tar.gz
mailutils-171d6ac0c3564b1faa523bf0380532ff25ed532c.tar.bz2
(mh_whom): Improve diagnostics.
-rw-r--r--mh/mh_whom.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mh/mh_whom.c b/mh/mh_whom.c
index 345163393..1fb3410ca 100644
--- a/mh/mh_whom.c
+++ b/mh/mh_whom.c
@@ -223,9 +223,13 @@ mh_whom (const char *filename, int check)
mh_read_aliases ();
ctx = mh_context_create (filename, 1);
- if (mh_context_read (ctx))
+ if ((rc = mh_context_read (ctx)))
{
- mu_error (_("Malformed message"));
+ if (rc == ENOENT)
+ mu_error ("%s: %s", filename, mu_strerror (rc));
+ else
+ mu_error ("%s: %s (%s)", filename, _("Malformed message"),
+ mu_strerror (rc));
rc = -1;
}
else

Return to:

Send suggestions and report system problems to the System administrator.