aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/search.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-08 21:33:10 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-10-08 22:38:05 -0400
commitc5d6b9452d1bfa51a5fef9a19082d115ef180a9b (patch)
tree17f9a1bdd2b09937b776127a1764a3c9067082cf /ext/bg/js/search.js
parent6a6e200ef947b92576351e39fc30b6653a576d70 (diff)
Create utility function for logging errors
Diffstat (limited to 'ext/bg/js/search.js')
-rw-r--r--ext/bg/js/search.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index 52adab16..ead9ba6f 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -53,7 +53,7 @@ class DisplaySearch extends Display {
}
onError(error) {
- window.alert(`Error: ${error.toString ? error.toString() : error}`);
+ logError(error, true);
}
onSearchClear() {