From 4970930c2f866133c38fa73800f1a963f0856692 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Fri, 4 Mar 2022 16:57:07 +0100 Subject: prepend all generated console messages with 'Haketilo:' --- html/install.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'html/install.js') 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); } -- cgit v1.2.3