If we get a search fields exception then also print out the model name
Signed-off-by: Michael Wood <[email protected]>
---
bitbake/lib/toaster/toastergui/widgets.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bitbake/lib/toaster/toastergui/widgets.py
b/bitbake/lib/toaster/toastergui/widgets.py
index 7f96370..aaa59c0 100644
--- a/bitbake/lib/toaster/toastergui/widgets.py
+++ b/bitbake/lib/toaster/toastergui/widgets.py
@@ -229,7 +229,8 @@ class ToasterTable(TemplateView):
"""Creates a query based on the model's search_allowed_fields"""
if not hasattr(self.queryset.model, 'search_allowed_fields'):
- raise Exception("Err Search fields aren't defined in the model")
+ raise Exception("Search fields aren't defined in the model %s"
+ % self.queryset.model)
search_queries = []
for st in search_term.split(" "):
--
2.1.4
--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster