Update error message in DirectoryReader class

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-22 12:56:18 -03:00
commit 0e210c36cc

View file

@ -78,7 +78,7 @@ class DirectoryReader:
component_tuple = (*build_component(component), component)
components.append(component_tuple)
except Exception as e:
logger.error(f"Error while loading component: {e}")
logger.error(f"Error while loading component { component['name']}: {e}")
continue
items.append({"name": menu["name"], "path": menu["path"], "components": components})
filtered = [menu for menu in items if menu["components"]]