🐛 fix(types.py): update error message to include the output types of the component that failed to load for better debugging

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-04 08:36:53 -03:00
commit 65850b9920

View file

@ -347,7 +347,7 @@ def build_valid_menu(valid_components):
valid_menu[menu_name][component_name] = component_template
except Exception as exc:
logger.error(f"Error loading Component: {component}")
logger.error(f"Error loading Component: {component['output_types']}")
logger.exception(
f"Error while building custom component {component_output_types}: {exc}"
)