summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-09-28 21:45:15 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-29 13:44:47 +0100
commit8152db1e35b9a3f35a25f801008f6fc61a6b11c4 (patch)
tree2f9dc5220fd91e1b55cd81c0751bc4f68907bc22
parent68b9c2d95ab17ee2d16325862342126eb5c3c1a7 (diff)
downloadbitbake-8152db1e35b9a3f35a25f801008f6fc61a6b11c4.zip
toaster: widgets ToasterTable Add more info to search field exception
If we get a search fields exception then also print out the model name Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/toaster/toastergui/widgets.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/toaster/toastergui/widgets.py b/lib/toaster/toastergui/widgets.py
index 7f963706..aaa59c08 100644
--- a/lib/toaster/toastergui/widgets.py
+++ b/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(" "):