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
parent
bd97ae7255
commit
64366d9992
|
@ -611,11 +611,7 @@ short color_to_short(const char *colorname, bool *bright)
|
||||||
else if (strcasecmp(colorname, "black") == 0)
|
else if (strcasecmp(colorname, "black") == 0)
|
||||||
return COLOR_BLACK;
|
return COLOR_BLACK;
|
||||||
|
|
||||||
rcfile_error(N_("Color \"%s\" not understood.\n"
|
rcfile_error(N_("Color \"%s\" not understood"), colorname);
|
||||||
"Valid colors are \"green\", \"red\", \"blue\",\n"
|
|
||||||
"\"white\", \"yellow\", \"cyan\", \"magenta\" and\n"
|
|
||||||
"\"black\", with the optional prefix \"bright\"\n"
|
|
||||||
"for foreground colors."), colorname);
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue