summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster
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 14:11:36 +0100
commit1cafc39e9646458df69a6f6ce91ba804d4999185 (patch)
treefbdfdc62db98c6e3eca109e3a014cc1e4c4b3f19 /bitbake/lib/toaster
parentc71bbad38ac65c2e439606a86b05f7112e6fa57e (diff)
downloadpoky-1cafc39e9646458df69a6f6ce91ba804d4999185.tar.gz
bitbake: toaster: widgets ToasterTable Add more info to search field exception
If we get a search fields exception then also print out the model name (Bitbake rev: 8152db1e35b9a3f35a25f801008f6fc61a6b11c4) 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>
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r--bitbake/lib/toaster/toastergui/widgets.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/widgets.py b/bitbake/lib/toaster/toastergui/widgets.py
index 7f9637060d..aaa59c083e 100644
--- a/bitbake/lib/toaster/toastergui/widgets.py
+++ b/bitbake/lib/toaster/toastergui/widgets.py
@@ -229,7 +229,8 @@ class ToasterTable(TemplateView):
229 """Creates a query based on the model's search_allowed_fields""" 229 """Creates a query based on the model's search_allowed_fields"""
230 230
231 if not hasattr(self.queryset.model, 'search_allowed_fields'): 231 if not hasattr(self.queryset.model, 'search_allowed_fields'):
232 raise Exception("Err Search fields aren't defined in the model") 232 raise Exception("Search fields aren't defined in the model %s"
233 % self.queryset.model)
233 234
234 search_queries = [] 235 search_queries = []
235 for st in search_term.split(" "): 236 for st in search_term.split(" "):