commit 64366d9992161fc5b814f42efc4f9ede71dace36
parent bd97ae7255cff7c6de6c85f4631e35df0ec46f98
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 15 Jan 2018 13:21:39 +0100
startup: make an error message succinct and to the point
The verbosity "hid" the really relevant information:
filename, line number, and the error message.
Valid values and other details can be found in the manual pages.
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/src/rcfile.c b/src/rcfile.c
@@ -611,11 +611,7 @@ short color_to_short(const char *colorname, bool *bright)
else if (strcasecmp(colorname, "black") == 0)
return COLOR_BLACK;
- rcfile_error(N_("Color \"%s\" not understood.\n"
- "Valid colors are \"green\", \"red\", \"blue\",\n"
- "\"white\", \"yellow\", \"cyan\", \"magenta\" and\n"
- "\"black\", with the optional prefix \"bright\"\n"
- "for foreground colors."), colorname);
+ rcfile_error(N_("Color \"%s\" not understood"), colorname);
return -1;
}