confighelper: update 'Invalid config option' warning for better understanding
Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
parent
245053434f
commit
81176a6d31
|
@ -153,9 +153,11 @@ class ConfigHelper:
|
||||||
for opt, val in self.config.items(sect):
|
for opt, val in self.config.items(sect):
|
||||||
if opt not in parsed_opts:
|
if opt not in parsed_opts:
|
||||||
self.server.add_warning(
|
self.server.add_warning(
|
||||||
f"Invalid config option '{opt}' detected in section "
|
f"Invalid config option '{opt}: {val}' detected in "
|
||||||
f"[{sect}]. Remove the option to resolve this issue. "
|
f"section [{sect}]. To solve this issue check your "
|
||||||
"In the future this will result in a startup error.")
|
"moonraker config. This option is invalid and has to "
|
||||||
|
"be deleted or fixed. In the future this will result "
|
||||||
|
"in a startup error.")
|
||||||
|
|
||||||
def get_configuration(server: Server,
|
def get_configuration(server: Server,
|
||||||
app_args: Dict[str, Any]
|
app_args: Dict[str, Any]
|
||||||
|
|
Loading…
Reference in New Issue