diff options
author | Jim Meyering <jim@meyering.net> | 1996-11-02 06:16:44 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-11-02 06:16:44 +0000 |
commit | f1af346ad5344db7cb3923d03b965e2683846b14 (patch) | |
tree | 09f3606254be3d4426565933a6eb6ca7a87726d3 | |
parent | 431bbb9c57f773a764451580bc7bcdba7e61c769 (diff) | |
download | coreutils-f1af346ad5344db7cb3923d03b965e2683846b14.tar.xz |
(main): Give better diagnostic.
Suggestion from Karl Berry.
-rw-r--r-- | src/date.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/date.c b/src/date.c index 92655a734..a84d80fca 100644 --- a/src/date.c +++ b/src/date.c @@ -123,7 +123,7 @@ batch_convert (const char *input_filename, const char *format) { if (line[line_length - 1] == '\n') line[line_length - 1] = '\0'; - error (0, 0, _("invalid date `%s'"), line); + error (0, 0, _("invalid date ` %s'"), line); status = 1; } else @@ -235,8 +235,10 @@ main (int argc, char **argv) && n_args == 1 && argv[optind][0] != '+') { error (0, 0, _("\ +the argument `%s' lacks a leading `+';\n\ when using an option to specify date(s), any\n\ -non-option argument must be a format string beginning with `+'")); +non-option argument must be a format string beginning with `+'"), + argv[optind]); usage (1); } |