From fc7f12b24d1894a2920a57f03e2255893f48fd87 Mon Sep 17 00:00:00 2001 From: Alfredo Monclus Date: Tue, 21 May 2024 10:58:53 -0300 Subject: [PATCH] config: give a better description for menu errors --- ks_includes/config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ks_includes/config.py b/ks_includes/config.py index 93b7daac..0fdf262f 100644 --- a/ks_includes/config.py +++ b/ks_includes/config.py @@ -199,11 +199,12 @@ class KlipperScreenConfig: for key in config[section]: if key not in bools and key not in strs and key not in numbers: msg = f'Option "{key}" not recognized for section "[{section}]"' - if key == "gcode" and section.startswith("menu"): + if section.startswith("menu"): msg = ( msg + "\n\n" - + "The 'gcode' option is not part of KlipperScreen syntax\n" - + "it's meant for text/graphical LCDs (usually blue) controlled by Klipper itself\n" + + "KlipperScreen menu uses different options than Klipper\n" + + "Syntax meant for text/graphical LCDs (usually blue)\n" + + "will not work with KlipperScreen\n" + "please consult KlipperScreen documentation." ) if key == "camera_url":