diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-03-06 14:29:25 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2005-03-06 14:29:25 +0000 |
commit | 9228442de1e8cfa7bb819d8d4a85b1c05975a200 (patch) | |
tree | d0ee4e977d2c42cc758f9ed5402a93d269cb9550 /readmsg | |
parent | 6223b874ac531c041625acc49b9daff69607188e (diff) | |
download | mailutils-9228442de1e8cfa7bb819d8d4a85b1c05975a200.tar.gz mailutils-9228442de1e8cfa7bb819d8d4a85b1c05975a200.tar.bz2 |
Use a uniform way of filename quoting in diagnostic messages.
Diffstat (limited to 'readmsg')
-rw-r--r-- | readmsg/readmsg.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/readmsg/readmsg.c b/readmsg/readmsg.c index f7f247b66..6bacf7d7d 100644 --- a/readmsg/readmsg.c +++ b/readmsg/readmsg.c @@ -245,9 +245,13 @@ main (int argc, char **argv) status = mailbox_create_default (&mbox, mailbox_name); if (status != 0) { - fprintf (stderr, _("Could not create mailbox <%s>: %s.\n"), - mailbox_name ? mailbox_name : _("default"), - mu_strerror(status)); + if (mailbox_name) + fprintf (stderr, _("Could not create mailbox `%s': %s\n"), + mailbox_name, + mu_strerror(status)); + else + fprintf (stderr, _("Could not create default mailbox: %s\n"), + mu_strerror(status)); exit (2); } @@ -265,7 +269,7 @@ main (int argc, char **argv) url_t url = NULL; mailbox_get_url (mbox, &url); - fprintf (stderr, _("Could not open mailbox <%s>: %s.\n"), + fprintf (stderr, _("Could not open mailbox `%s': %s\n"), url_to_string (url), mu_strerror(status)); exit (2); } |