From 61af4d11437271ad8d62629497dd586fba365c9e Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Mon, 6 May 2024 11:52:03 +0800 Subject: [PATCH] Use the logging to display the error message --- scripts/mapping/read.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/mapping/read.js b/scripts/mapping/read.js index 6d33616..eb1d210 100644 --- a/scripts/mapping/read.js +++ b/scripts/mapping/read.js @@ -1,6 +1,8 @@ /* read_universal Read a file stored in the universal strings. */ +import logging from "/scripts/logging.js"; + 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. @@ -54,7 +56,7 @@ export default class texts { return (SYMBOL); }) .catch((error) => { - console.error(error); + logging.error(error.name, null, null, false); })); }; }