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.
master
Benno Schulenberg 2018-01-15 13:21:39 +01:00
parent bd97ae7255
commit 64366d9992
1 changed files with 1 additions and 5 deletions

View File

@ -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;
}