commit 84b65259144143c5a13acdeeee69733953500246
parent 2abe7c03fe25e3291a0aaeddffcb24df1b09d8c2
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 2 Jul 2017 19:52:30 +0200
tweaks: adjust an error message so it fits all possible cases
The thing after a 'comment' directive is just a string, not the
name of a program nor a command.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/rcfile.c b/src/rcfile.c
@@ -881,7 +881,7 @@ void grab_and_store(const char *kind, char *ptr, regexlisttype **storage)
}
}
-/* Parse and store the name given after a linter/formatter command. */
+/* Gather and store the string after a comment/linter/formatter command. */
void pick_up_name(const char *kind, char *ptr, char **storage)
{
assert(ptr != NULL);
@@ -893,7 +893,7 @@ void pick_up_name(const char *kind, char *ptr, char **storage)
}
if (*ptr == '\0') {
- rcfile_error(N_("Missing command after '%s'"), kind);
+ rcfile_error(N_("Missing argument after '%s'"), kind);
return;
}