From 64366d9992161fc5b814f42efc4f9ede71dace36 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 15 Jan 2018 13:21:39 +0100 Subject: [PATCH] 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. --- src/rcfile.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/rcfile.c b/src/rcfile.c index 6be8dab0..e6a9a2c2 100644 --- 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; }