From 81176a6d3137d373e0e99b0b64ad6245d8aaf840 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 29 Aug 2021 20:02:17 +0200 Subject: [PATCH] confighelper: update 'Invalid config option' warning for better understanding Signed-off-by: Stefan Dej --- moonraker/confighelper.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/moonraker/confighelper.py b/moonraker/confighelper.py index a26ee4b..c40bead 100644 --- a/moonraker/confighelper.py +++ b/moonraker/confighelper.py @@ -153,9 +153,11 @@ class ConfigHelper: for opt, val in self.config.items(sect): if opt not in parsed_opts: self.server.add_warning( - f"Invalid config option '{opt}' detected in section " - f"[{sect}]. Remove the option to resolve this issue. " - "In the future this will result in a startup error.") + f"Invalid config option '{opt}: {val}' detected in " + f"section [{sect}]. To solve this issue check your " + "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, app_args: Dict[str, Any]