From 8cc1fe007da67d44f0322187111d400308b0ed39 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 25 Jul 2013 23:08:27 -0400 Subject: [PATCH] search: Actually crash when seeing errors from a native search provider We don't implement many of these, and not catching the error lets us see stack traces and other such information a lot faster. https://bugzilla.gnome.org/show_bug.cgi?id=704912 --- js/ui/search.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/js/ui/search.js b/js/ui/search.js index 1fd442e1f..3648fa130 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -82,22 +82,14 @@ const SearchSystem = new Lang.Class({ if (isSubSearch) { for (let i = 0; i < this._providers.length; i++) { let [provider, previousResults] = previousResultsArr[i]; - try { - results.push([provider, []]); - provider.getSubsearchResultSet(previousResults, terms); - } catch (error) { - log('A ' + error.name + ' has occured in ' + provider.id + ': ' + error.message); - } + results.push([provider, []]); + provider.getSubsearchResultSet(previousResults, terms); } } else { for (let i = 0; i < this._providers.length; i++) { let provider = this._providers[i]; - try { - results.push([provider, []]); - provider.getInitialResultSet(terms); - } catch (error) { - log('A ' + error.name + ' has occured in ' + provider.id + ': ' + error.message); - } + results.push([provider, []]); + provider.getInitialResultSet(terms); } } }