Use logError instead of console.log

This commit is contained in:
toasted-nutbread 2020-04-05 18:27:53 -04:00
parent 7449ffd4dc
commit 9dfe531dfd
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ class Database {
});
return true;
} catch (e) {
console.error(e);
logError(e);
return false;
}
}

View File

@ -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') {