1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

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>
This commit is contained in:
Michael Wood
2015-09-28 21:45:15 -07:00
committed by Richard Purdie
parent c71bbad38a
commit 1cafc39e96
+2 -1
View File
@@ -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(" "):