mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
config: Swap the "unknown command" and "parse error" messages.
They should be in the same order as in enum parse_error.
This commit is contained in:
parent
b216a21b79
commit
1d16e90dca
@ -391,12 +391,12 @@ parse_config_file(struct option *options, unsigned char *name,
|
|||||||
enum parse_error err = 0;
|
enum parse_error err = 0;
|
||||||
enum verbose_level verbose = get_cmd_opt_int("verbose");
|
enum verbose_level verbose = get_cmd_opt_int("verbose");
|
||||||
static const unsigned char error_msg[][40] = {
|
static const unsigned char error_msg[][40] = {
|
||||||
"no error",
|
"no error", /* ERROR_NONE */
|
||||||
"parse error",
|
"unknown command", /* ERROR_COMMAND */
|
||||||
"unknown command",
|
"parse error", /* ERROR_PARSE */
|
||||||
"unknown option",
|
"unknown option", /* ERROR_OPTION */
|
||||||
"bad value",
|
"bad value", /* ERROR_VALUE */
|
||||||
"no memory left",
|
"no memory left", /* ERROR_NOMEM */
|
||||||
};
|
};
|
||||||
|
|
||||||
while (file && *file) {
|
while (file && *file) {
|
||||||
|
Loading…
Reference in New Issue
Block a user