]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Give better diagnostic.
authorJim Meyering <jim@meyering.net>
Sat, 2 Nov 1996 06:16:44 +0000 (06:16 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 2 Nov 1996 06:16:44 +0000 (06:16 +0000)
Suggestion from Karl Berry.

src/date.c

index 92655a734af1f7f8f7083f62e2ce815066163179..a84d80fca67b80304c3aaced07104307a80fd145 100644 (file)
@@ -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);
     }