From 4fd8daf9f327d38423bbd6324b726cc875ea1de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Wed, 26 Oct 2022 09:42:40 +0200 Subject: [PATCH] +verbosity at component loading AttributeError targets #380 --- django_unicorn/components/unicorn_view.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_unicorn/components/unicorn_view.py b/django_unicorn/components/unicorn_view.py index 83d58e43..6129e831 100644 --- a/django_unicorn/components/unicorn_view.py +++ b/django_unicorn/components/unicorn_view.py @@ -893,7 +893,7 @@ def _get_component_class( if class_name_not_found is not None and attribute_exception is not None: message = ( - f"The component class '{class_name_not_found}' could not be loaded." + f"The component class '{class_name_not_found}' could not be loaded:\n {attribute_exception}" ) raise ComponentClassLoadError( message, locations=locations