summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-05 18:27:53 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-05 18:27:53 -0400
commit9dfe531dfd75af0eec26d532a40095fe8a982df1 (patch)
tree5f2271d6257f3244cbbf1e26464ae20371b80729
parent7449ffd4dc74ea79c1e7337a6402b1c697c0a875 (diff)
Use logError instead of console.log
-rw-r--r--ext/bg/js/database.js2
-rw-r--r--ext/bg/js/settings/dictionaries.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/database.js b/ext/bg/js/database.js
index 7a4d094b..4a677fea 100644
--- a/ext/bg/js/database.js
+++ b/ext/bg/js/database.js
@@ -99,7 +99,7 @@ class Database {
});
return true;
} catch (e) {
- console.error(e);
+ logError(e);
return false;
}
}
diff --git a/ext/bg/js/settings/dictionaries.js b/ext/bg/js/settings/dictionaries.js
index ed883869..00056e2e 100644
--- a/ext/bg/js/settings/dictionaries.js
+++ b/ext/bg/js/settings/dictionaries.js
@@ -505,7 +505,7 @@ function dictionaryErrorsShow(errors) {
if (errors !== null && errors.length > 0) {
const uniqueErrors = new Map();
for (let e of errors) {
- console.error(e);
+ logError(e);
e = dictionaryErrorToString(e);
let count = uniqueErrors.get(e);
if (typeof count === 'undefined') {