Commit 64366d99 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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.
parent bd97ae72
Showing with 1 addition and 5 deletions
+1 -5
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment