mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-21 05:33:45 -04:00
config: 'invalid key' is always an error, not a warning
This commit is contained in:
parent
65ff582358
commit
9fae38a4b2
1 changed files with 3 additions and 4 deletions
7
config.c
7
config.c
|
|
@ -258,7 +258,7 @@ parse_section_main(const char *key, const char *value, struct config *conf,
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
LOG_WARN("%s:%u: invalid key: %s", path, lineno, key);
|
LOG_ERR("%s:%u: invalid key: %s", path, lineno, key);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -440,7 +440,7 @@ parse_section_csd(const char *key, const char *value, struct config *conf,
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
LOG_WARN("%s:%u: invalid key: %s", path, lineno, key);
|
LOG_ERR("%s:%u: invalid key: %s", path, lineno, key);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -474,8 +474,7 @@ parse_section_key_bindings(const char *key, const char *value, struct config *co
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LOG_ERR("%s:%u: invalid key: %s", path, lineno, key);
|
||||||
LOG_WARN("%s:%u: invalid key: %s", path, lineno, key);
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue