Use the logging to display the error message

This commit is contained in:
buzz-lightsnack-2007 2024-05-06 11:52:03 +08:00
parent 1f7661ff12
commit 61af4d1143

View file

@ -1,6 +1,8 @@
/* read_universal /* read_universal
Read a file stored in the universal strings. */ Read a file stored in the universal strings. */
import logging from "/scripts/logging.js";
export default class texts { export default class texts {
/* This reads the message from its source. This is a fallback for the content scripts, who doesn't appear to read classes. /* This reads the message from its source. This is a fallback for the content scripts, who doesn't appear to read classes.
@ -54,7 +56,7 @@ export default class texts {
return (SYMBOL); return (SYMBOL);
}) })
.catch((error) => { .catch((error) => {
console.error(error); logging.error(error.name, null, null, false);
})); }));
}; };
} }