diff options
Diffstat (limited to 'mh/mh_whom.c')
-rw-r--r-- | mh/mh_whom.c | 8 |
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 |