Made error messages clearer

This commit is contained in:
BlueFox 2024-11-13 18:30:23 +01:00
parent 4550749c8e
commit a45cd6e90d
Signed by: BlueFox
GPG Key ID: 327233DA85435270

View File

@ -61,7 +61,7 @@ class lcdMenu:
# some checks:
# 1. if you scrolling vertically, I found no elegant way to hide the name (there just need's to be something up there!)
if self.scroll_direction and self.hide_menu_name:
raise TypeError("Hiding the menu name whilst having the scroll direction set to horizontal!")
raise TypeError("Hiding the menu name whilst having the scroll direction set to horizontal is impossible!")
# 2. if there are no menu items to display...
if len(self.menu_items) == 0:
raise TypeError("Can't show empty menus! Maybe you forgot calling self.setup() after initializing me?")