summaryrefslogtreecommitdiff
path: root/html/install.js
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-03-04 16:57:07 +0100
committerWojtek Kosior <koszko@koszko.org>2022-03-04 17:25:17 +0100
commit4970930c2f866133c38fa73800f1a963f0856692 (patch)
tree5cb1f7aaa317b02dbc266a62e07c21b05340b106 /html/install.js
parent7fdb3e8474488de2b18da7e9b63719bb05961819 (diff)
downloadbrowser-extension-4970930c2f866133c38fa73800f1a963f0856692.tar.gz
browser-extension-4970930c2f866133c38fa73800f1a963f0856692.zip
prepend all generated console messages with 'Haketilo:'
Diffstat (limited to 'html/install.js')
-rw-r--r--html/install.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/html/install.js b/html/install.js
index c502719..fddee5d 100644
--- a/html/install.js
+++ b/html/install.js
@@ -105,7 +105,7 @@ async function init_work() {
work.err = function (error, user_message) {
if (error)
- console.error(error);
+ console.error("Haketilo:", error);
work.is_ok = false;
work.reject_cb(user_message);
}
@@ -392,7 +392,7 @@ function InstallView(tab_id, on_view_show, on_view_hide) {
try {
await haketilodb.save_items(data);
} catch(e) {
- console.error(e);
+ console.error("Haketilo:", e);
const msg = "Error writing to Haketilo's internal database :(";
var dialog_prom = dialog.error(this.dialog_ctx, msg);
}